Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ravenmike
New Member

getting error PowerBINotAuthorizedException

 

I am trying to get embed token for power bi using service principle (app owns data),  i have followed all the steps in the microsoft blog.

 

I have attached a screenshot of my workspace as well.


When i try to access the apis am getting PowerBINotAuthorizedException 

 

Please help me.

 

ravenmike_0-1655903407534.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ravenmike ,

 

For reference: Considerations and limitations

  • My Workspace isn't supported when using service principal.

As far as I know, we need to create a security group in Azure portal and then add the Service Principal as a member in that group.

Step 3 - Enable the Power BI service admin settings

Enable the Allow service principals to use Power BI APIs switch either for the entire organization or for the specific security group you created in Azure AD.

RicoZhou_0-1656317318628.png

Step 4 - Add the service principal to your workspace

To enable your Azure AD app to access items such as reports, dashboards and datasets in the Power BI service, add the service principal entity, or the security group that includes your service principal, as a member or admin to your workspace.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @ravenmike ,

 

For reference: Considerations and limitations

  • My Workspace isn't supported when using service principal.

As far as I know, we need to create a security group in Azure portal and then add the Service Principal as a member in that group.

Step 3 - Enable the Power BI service admin settings

Enable the Allow service principals to use Power BI APIs switch either for the entire organization or for the specific security group you created in Azure AD.

RicoZhou_0-1656317318628.png

Step 4 - Add the service principal to your workspace

To enable your Azure AD app to access items such as reports, dashboards and datasets in the Power BI service, add the service principal entity, or the security group that includes your service principal, as a member or admin to your workspace.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.