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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
nd1022
Frequent Visitor

Power BI Embed token with Edit Access Level

Hi ,

 

I am trying to generate access token with "edit" access level using serviceprincipal. 

 

generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "edit");

 

It throws below error: 

Error
Status: Forbidden (403)
Response: {"error":{"code":"InvalidRequest","message":"Only folder user with reshare permissions can generate embed token"}}
RequestId: 833fba90-5f42-4f75-b2fa-64672d3b6868

 

What am i missing here?

1 ACCEPTED SOLUTION
nd1022
Frequent Visitor

Ok So I found the solution of this problem. Issue is with access level at the workspace. The security group should have Admin or Member level access at the workspace level.

 

 

View solution in original post

2 REPLIES 2
nd1022
Frequent Visitor

Ok So I found the solution of this problem. Issue is with access level at the workspace. The security group should have Admin or Member level access at the workspace level.

 

 

v-gizhi-msft
Community Support
Community Support

Hi,

 

It is a permission error, and you should assign reshare permission in dataset for users.

See this:

https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#step-4---add-th... 

 

Best Regards,

Giotto

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.