Forum Discussion

raghavs280's avatar
raghavs280
New Member
5 years ago

401 while using user own data approach for the embedded report

I was able to successfully embed power bi Report using user own data . Trying to perform the actions from the action bar for creating the bookmark. When i tried to add the bookmark it didn't work as expected. i can see the failed 401 request in the network tab . Same happens for the favourite functionality as well. i have enabled the UserState.ReadWrite.All permission in azure ad app as well.

 

this is below request which happens in the network
https://wabi-us-east2-b-primary-redirect.analysis.windows.net/explore/reports/977147/bookmarks/2 

this request fails with 401 error code. i can see all the required things like token and other parameters are passed but still it fails. if someone has faced this issue please let me know how can i rectify this

2 Replies

    • raghavs280's avatar
      raghavs280
      New Member

      Hi Team,

      Thanks for the replying .

      i am embedding for organization not for the customer one. i have provided the relevant permissions to the app in the azure active directory. As i said above i am able to view the report and embed in single page application. I am trying to perform addition of bookmark and favourite through the action bar. i am not able to perform that due to 401 error when clicking on those actions.. As per the below link from microsoft i have done the relevant things like providing the permission to the ad app (UserState.ReadWrite.All) and enabled the personalBookmarks setting in the report configuration object. Please refer the below screenshot for the permission for the app. 
      https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/personal-bookmarks

       

       

       

      Please do let me know if any further information needed.

      Regards,

      Raghav Sharma