Skip to main content

Power BI

Needs Votes

Assign User Group to a Workspace via PowerShell

Vote (1) Share
Michael Daynes's profile image

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)
Michael Daynes's profile image Profile Picture

James Bartlett on 10 May 2021 23:05:34

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.

Michael Daynes's profile image Profile Picture

James Bartlett on 10 May 2021 23:00:45

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