Forum Discussion
Anonymous
7 years agoNot applicable
User able to Edit the Power BI Report in Javascript SDK with Embed Token Genereated for View only
I have embedded the power bi report using service principal as given here. I'm generating the embed token as below, var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel:"View",...
v-yulgu-msft
Microsoft Employee
7 years agoHi Anonymous ,
You may modify above code as below to grant read-only permission.
permissions: models.Permissions.Read, viewMode: models.ViewMode.View,
For detailed description and sample code, please see: Embed Configuration Details
Best regards,
Yuliana Gu
- Anonymous7 years agoNot applicable
Hi v-yulgu-msft ,
Thanks for your reply. But some one can potentially change the line as below and update the report.
permissions: models.Permissions.ReadWrite,
viewMode: models.ViewMode.Edit,Thanks