Forum Discussion
Getting this "exploration 401 (Unauthorized)" error while applying bookmark.
Hello Everyone,
I have a power BI report and few bookmarks (called as default bookmark) which created by power bi team on that report.
I'm embedding that report in angular and allowing the user to create a custom bookmark as per their need.
I'm getting bookmark object for both user created bookmark and default bookmark and using that bookmark object I'm calling report method,
- 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
1 Reply
- AnonymousNot applicable
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