Forum Discussion
Add AD group to the workspace via Power Shell
- 5 years ago
Hi sb991986 ,
Before running Add-PowerBIWorkspaceUser command, please make sure to log in with the power supply-power BI service account and grant specified users access to the Power BI workspace using the provided input and specified scope.
Then according to the parameter configuration provided by the document, try again.
Add-PowerBIWorkspaceUser (MicrosoftPowerBIMgmt.Workspaces) | Microsoft Docs
In addition, you can also try to use rest api to get the same result, you can make a try
Groups - Add Group User - REST API (Power BI Power BI REST APIs) | Microsoft Docs
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - 5 years ago
Thank you. I am able to resolve the issue using Rest API call instead Power Shell cmdlet.
Hi sb991986 ,
Before running Add-PowerBIWorkspaceUser command, please make sure to log in with the power supply-power BI service account and grant specified users access to the Power BI workspace using the provided input and specified scope.
Then according to the parameter configuration provided by the document, try again.
Add-PowerBIWorkspaceUser (MicrosoftPowerBIMgmt.Workspaces) | Microsoft Docs
In addition, you can also try to use rest api to get the same result, you can make a try
Groups - Add Group User - REST API (Power BI Power BI REST APIs) | Microsoft Docs
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you. I am able to resolve the issue using Rest API call instead Power Shell cmdlet.
- v-henryk-mstf5 years agoCommunity Support
Hi sb991986 ,
Cheers.😊 If my reply helped you, you can mark it as the correct answer, to help the other members find it more quickly.
Looking forward to your reply.
Best Regards,
Henry