Forum Discussion
Getting this "exploration 401 (Unauthorized)" error while applying bookmark.
- Anonymous2 years ago
Hi Suryakant_99 ,
It sounds like you’re encountering a permissions issue with the default bookmarks created by the Power BI team. However, it is working for personal bookmark. Could you please check the following info?
1. Ensure enable Report.Read.All or Report.ReadWrite.All permissions.
- Go to the Azure portal and navigate to Azure Active Directory > App registrations.
- Select your app and go to API permissions.
- Ensure that you have the necessary permissions like Report.Read.All or Report.ReadWrite.All.
2. If you are using service principle, please mark sure enable the service principal to use API and add it as the admin of workspace (it seems ok since creating personal bookmark work successfully)
powerbi - 401 Unauthorized: Error while retrieving Embed URL (embed power bi for customers-Python)
3. Create the bookmarks with proper codes
PowerBI Embedded Capture Bookmark - Stack Overflow
Enhance your users' experience with bookmarks in Power BI embedded analytics | Microsoft Learn
await report.bookmarksManager.applyState(capturedBookmark.state);Best Regards
Hi Suryakant_99 ,
It sounds like you’re encountering a permissions issue with the default bookmarks created by the Power BI team. However, it is working for personal bookmark. Could you please check the following info?
1. Ensure enable Report.Read.All or Report.ReadWrite.All permissions.
- Go to the Azure portal and navigate to Azure Active Directory > App registrations.
- Select your app and go to API permissions.
- Ensure that you have the necessary permissions like Report.Read.All or Report.ReadWrite.All.
2. If you are using service principle, please mark sure enable the service principal to use API and add it as the admin of workspace (it seems ok since creating personal bookmark work successfully)
powerbi - 401 Unauthorized: Error while retrieving Embed URL (embed power bi for customers-Python)
3. Create the bookmarks with proper codes
PowerBI Embedded Capture Bookmark - Stack Overflow
Enhance your users' experience with bookmarks in Power BI embedded analytics | Microsoft Learn
await report.bookmarksManager.applyState(capturedBookmark.state);
Best Regards