Forum Discussion
How can I add a Azure Security group to Power BI WorkSpace using c#?
Hi, SubramoniaIyer
Maybe you can use power rest api, please refer to Rest API documentation
https://docs.microsoft.com/en-us/rest/api/power-bi/groups/add-group-user
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 Replies
- arvindsingh802
Community Champion
You can use Power BI API- Admin - Groups AddUserAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Docs
If this post helps, then please consider Accept it as the solution and give it a thumbs up
- SubramoniaIyerRegular Visitor
How can I give the authorization before Using this?
- v-angzheng-msft
Community Support
Hi, SubramoniaIyer
Maybe you can use power rest api, please refer to Rest API documentation
https://docs.microsoft.com/en-us/rest/api/power-bi/groups/add-group-user
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- SubramoniaIyerRegular Visitor
Could you show me how can I get authorization. I was getting an error when I was trying to given API permissions for Power BI service in Azure active directory for my app.
- v-angzheng-msft
Community Support
The following is a reference, please check if it is what you want
https://www.youtube.com/watch?v=fjzmz0BNN_g
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.