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
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
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.