The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I have the following questions and I can't find a clear solution.
Context: Power Bi Embedded
1. Can I give a user (meaning the organization's user) reading access to a report published in Power Bi through some operation via REST API?
2. Can I give permissions to a user (meaning an organization user) on a semantic model that has created a specific role (obviously already created previously) via REST API? It is to apply row level security (RLS)
Thanks in advance.
Greetings
Solved! Go to Solution.
Hi @Anonymous ,
Thanks for reaching to us with your problems. Base on my research, it seems that there is no such REST API can manage the user at the report level. You can manage the user at workspace by the following REST API:
Groups - Add Group User - REST API (Power BI Power BI REST APIs) | Microsoft Learn
And for giving permissions to a user on a semantic model via REST API, you can refer the following link to get it. Power BI has two sets of permissions: Workspace permissions and Item permissions. Semantic model permissions are part of the item permissions. And for a semantic model that uses row-level security (RLS), any permissions higher than build
will enable the user to view all the data in the semantic model. Build
, and permissions lower than build
, will only give the semantic model user access to the data they're allowed to see as configured in your RLS settings.
Power BI REST APIs semantic model permissions - Power BI | Microsoft Learn
Workspace permissions
SSemantic model permissions
Best Regards
Hi @Anonymous ,
Thanks for reaching to us with your problems. Base on my research, it seems that there is no such REST API can manage the user at the report level. You can manage the user at workspace by the following REST API:
Groups - Add Group User - REST API (Power BI Power BI REST APIs) | Microsoft Learn
And for giving permissions to a user on a semantic model via REST API, you can refer the following link to get it. Power BI has two sets of permissions: Workspace permissions and Item permissions. Semantic model permissions are part of the item permissions. And for a semantic model that uses row-level security (RLS), any permissions higher than build
will enable the user to view all the data in the semantic model. Build
, and permissions lower than build
, will only give the semantic model user access to the data they're allowed to see as configured in your RLS settings.
Power BI REST APIs semantic model permissions - Power BI | Microsoft Learn
Workspace permissions
SSemantic model permissions
Best Regards