Michael Daynes on 28 Feb 2021 17:49:34
Assign User Group to a Workspace via PowerShell.
Similar to 'Add-PowerBIWorkspaceUser' but for groups.
- Comments (2)
RE: Assign User Group to a Workspace via PowerShell
Hmm, the forum software automatically deleted the placeholder values I put in after the Workspace and Identifier parameters, and I can't edit the post. They're both supposed to have GUID values.
RE: Assign User Group to a Workspace via PowerShell
Did you try passing Group to the PrincipalType parameter?
Add-PowerBIWorkspaceUser
-Scope Organization
-AccessRight Admin
-Workspace
-PrincipalType Group <------------------ Here
-Identifier
https://docs.microsoft.com/en-us/powershell/module/microsoftpowerbimgmt.workspaces/add-powerbiworkspaceuser?view=powerbi-ps