The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi All,
I have integrated Power BI reports into a React application using the Power BI Client JavaScript library. I'm using a service principal, which has been added as a member of the workspace.
On desktop, I can see the action bar. However, in the embedded report, the action bar is not visible. In the Power BI Playground, when I load the report using an embed token, the action bar is also not visible. But if I load the report without an embed token, the action bar appears as expected
Any help on this please?
Thanks
Gaurav
Solved! Go to Solution.
Hi @GauravLolge ,
When you embed Power BI using a service principal, the action bar (with things like Export, Save, etc.) is often hidden by default. That’s because the service principal usually only gets “view” permissions for security reasons, so a lot of interactive UI elements including the action bar won’t show up. Its because, If you generate an embed token for a regular user (with higher permissions), you’ll often see the action bar. But with a service principal, you need a few things lined up:
What you should check:
Workspace Role: Make sure your service principal is actually a Member or Contributor in the workspace. If it’s only a Viewer, most action bar features will stay hidden.
Embed Config: In your JavaScript config, you can request the action bar like this:
settings: {
panes: {
actions: { visible: true }
}
}
With service principal embedding, the action bar is hidden unless you have the right permissions and settings. Double-check your workspace role and embed settings. For more advanced actions, “user owns data” embedding is needed, but that’s a different setup.
Hi @GauravLolge ,
Service principals typically operate under the “App owns data” model. This model restricts UI elements like the action bar for security and licensing reasons ;even if the token has edit permissions.
Refer similar post -
https://learn.microsoft.com/en-us/answers/questions/5193203/power-bi-embedded-action-bar-limitations
Since Copilot is enabled in your tenant and visible in Power BI Service, you can try to check-
1. The workspace is backed by Premium capacity
2. The service principal has contributor or member access
3. The embed token includes the necessary dataset and report scope
You can also try switching to “User Owns Data” Model.
Hope this helps!
Hi @rohit1991 @v-sdhruv @GilbertQ
I am able to get the the header with user AAD token but copilot and bookmark options are not visibile. Copilot is enabled in tenant settings and can see this option in action bar in power bi service
Hi @GauravLolge ,
Since we didnt hear back, we would be closing this thread.
If you need any assistance, feel free to reach out by creating a new post.
Thank you
Hi @GauravLolge ,
Just wanted to check if you had the opportunity to review the suggestions provided?
If you need any assistance, let us know.
Thank You
HI @rohit1991 I am using service principal and it is added as member to workspace. I am genearting token with Edit permissions still action bar is not visible. I will try with user token now as you mentioned.
Hi @GauravLolge ,
When you embed Power BI using a service principal, the action bar (with things like Export, Save, etc.) is often hidden by default. That’s because the service principal usually only gets “view” permissions for security reasons, so a lot of interactive UI elements including the action bar won’t show up. Its because, If you generate an embed token for a regular user (with higher permissions), you’ll often see the action bar. But with a service principal, you need a few things lined up:
What you should check:
Workspace Role: Make sure your service principal is actually a Member or Contributor in the workspace. If it’s only a Viewer, most action bar features will stay hidden.
Embed Config: In your JavaScript config, you can request the action bar like this:
settings: {
panes: {
actions: { visible: true }
}
}
With service principal embedding, the action bar is hidden unless you have the right permissions and settings. Double-check your workspace role and embed settings. For more advanced actions, “user owns data” embedding is needed, but that’s a different setup.
Hi @GauravLolge
could you please provide a screenshot of the action bar you're talking about so we can assist you better, and I'm sure that it might be possible to show the action bar using some of the embedded property settings