Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
luish_castroc
New Member

Trying to get roles needed for an RLS report using the APi

Hi,

I currently have an AppService that uses a service principal, and I'm trying to embed reports in an Angular application using a combination of a Microsoft user and a service principal to generate the embedded tokens. Everything works except that when I try to load RLS reports, I need to provide the proper roles, and I don't have an easy way to get those roles either from the user or from the PowerBI API. I have Tenant.ReadAll access, so I think that prevents me from using the admin APIs. Any advice is appreciated.

8 REPLIES 8
v-nmadadi-msft
Community Support
Community Support

Hi @luish_castroc 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the community members for the issue worked. If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Thanks 

v-nmadadi-msft
Community Support
Community Support

Hi @luish_castroc 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If our responses has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

v-nmadadi-msft
Community Support
Community Support

Hi @luish_castroc 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

 

lbendlin
Super User
Super User

You can enumerate RLS roles in a semantic model via DMV queries.

 

select * from $SYSTEM.TMSCHEMA_ROLES

Thanks for the response, im not familiar with that process since i'm using the powerbi REST api

thanks but as per the documentation on the api that won't work:

 Service Principals aren't supported for datasets with RLS per RLS limitations or datasets with SSO enabled.

im using a service principal.

Hi @luish_castroc 
If you have only a few RLS groups, a practical workaround is to create separate reports for each group and embed them individually, sharing each group's report accordingly, however, if there are many RLS groups, this approach becomes unmanageable and is not a suitable solution and if the feature is really important to you, Please raise a post in ideas forum
Fabric Ideas - Microsoft Fabric Community
to allow the use of service principal with RLS.

If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thank you



Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.