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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors