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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Implement Row Level Security for Checking the Access for the Logged in User

Hi

For a logged in user I want to verify the access level with Azure AAD groups, to get the list of subscriptions users have access to .

 

Curently I am using the function USERPRINCIPALNAME() for checking the email ID of the logged in user with the table column . However I want to check with Azure AAD groups . Is there a different function that I need to use .

 

Eg I have a table with list of Azure Subscriptions and corresponding AAD group name assigned (which has permissions on respective subscription), So I want to check the logged in user email Id and verify with the AAD group to confirm whereall the logged users have access to.

Please suggest. 

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous,

I’m trying to understand your requirement in case… According to your description in the case, assume that there are 2 below table: table 1 (include subscriptions list and the respective group name)  and table 2(include group and user info). What you want is it will got the subscription “sub1” when the user u1/u2/u3 login, and it will get the subscription “sub2” login when user u4/u5 login? If my understanding is correct? If yes, you can refer this documentation to get the expected results. If no, please correct me and provide me more details. Thank you.

Table1

Azure Subscriptions

AAD group name

sub1

group1

sub2

group2

  

AAD Group

Users

group1

u1

group1

u2

group1

u3

group2

u4

group2

u5

 

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
Super User

@Anonymous you can use Graph API to get data from AAD. More info here. Would appreciate Kudos 🙂 if my solution helped.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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