Forum Discussion

sb991986's avatar
sb991986
Advocate I
5 years ago
Solved

Add AD group to the workspace via Power Shell

Hi,   I am trying to add AD distribution list as a member using Power Shell Script but getting below error message. Has anyone seen this issue before?   script: Add-PowerBIWorkspaceUser -Id $work...
  • v-henryk-mstf's avatar
    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.

  • sb991986's avatar
    sb991986
    5 years ago

    Thank you. I am able to resolve the issue using Rest API call instead Power Shell cmdlet.