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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
rperes
New Member

How to add a member to a RLS via Power Shell, API or programatically

I would like to know if there is any way to add members (people or group) to a specific role using some kind of power shell script or API or even programatically. The users with access will be sitting in a table populated by an external system. So bascically every time an user is added to the table, I will trigger a process to add the user as a member.

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @rperes 

To my knowledge, There is no way to add a user for RLS via  Power Shell, API directly.

And you try this workaround, you could add users into security group, then set RLS by this security group.

Now add users in a table to security group via Power Shell.

 

Regards,

Lin

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

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi  @rperes 

To my knowledge, There is no way to add a user for RLS via  Power Shell, API directly.

And you try this workaround, you could add users into security group, then set RLS by this security group.

Now add users in a table to security group via Power Shell.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

@rperes - I do not see anything obvious in the Power BI REST API's or Powershell references.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors