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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.