This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All,
I found this topic: https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-give-access-new-workspaces
I wanna to confirm that any ideas to achieve it using code? like powerShell or C# .... Thanks.
Solved! Go to Solution.
Hi @simonlxd ,
As far as I know, you can try to call Power BI Rest API to add users to workspace and give them permissions by PowerShell.
Rest API : Groups - Add Group User - REST API (Power BI Power BI REST APIs) | Microsoft Learn
For reference:
Power BI Cmdlets reference | Microsoft Learn
Call any Power BI REST API with PowerShell - Bing video
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @simonlxd ,
As far as I know, you can try to call Power BI Rest API to add users to workspace and give them permissions by PowerShell.
Rest API : Groups - Add Group User - REST API (Power BI Power BI REST APIs) | Microsoft Learn
For reference:
Power BI Cmdlets reference | Microsoft Learn
Call any Power BI REST API with PowerShell - Bing video
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 3 | |
| 3 | |
| 2 |