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
SLI
Helper IV
Helper IV

Adding users to role on power bi service automatically

Hi everyone

Is it possible to make automated the rls and avoid adding member of role on power bi service 

my client has 400 persons to add into the rls and he wants to be done automaticcally 

we have used a dynamic rls in desktop by using the username function 

thanks for your Help 

sli

 

 

 

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @SLI ,

 

you can create an Azure Active Directory security group, add this group to the RLS role.

 

Then you can create a PowerShell script adding the users to this group
https://www.alitajran.com/add-users-to-group-powershell/#:~:text=%20Add%20users%20to%20group%20with%...
, you can automate the exceution of the script, meaning scanning if there are new users which are meeting certain requirements and if so add theses users to the security group.

Hopefully, this provides an idea on how to tackle your challenge.

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
TomMartens
Super User
Super User

Hey @SLI ,

 

you can create an Azure Active Directory security group, add this group to the RLS role.

 

Then you can create a PowerShell script adding the users to this group
https://www.alitajran.com/add-users-to-group-powershell/#:~:text=%20Add%20users%20to%20group%20with%...
, you can automate the exceution of the script, meaning scanning if there are new users which are meeting certain requirements and if so add theses users to the security group.

Hopefully, this provides an idea on how to tackle your challenge.

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thank you very much for your help 

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.

Top Solution Authors
Top Kudoed Authors