Commands › Power BI
Add-PowerBIWorkspaceUser
Gives permissions to a specified user to access a Power BI workspace. Organization scope only allows requests with user principal.
Quick start script
# Add-PowerBIWorkspaceUser — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-PowerBIServiceAccount -ServicePrincipal -CertificateThumbprint $thumb -ApplicationId $appId -Tenant $tenantId
# 2. Run and inspect
Add-PowerBIWorkspaceUser -AccessRight <WorkspaceUserAccessRight> -Id <Guid> -Identifier <String> | Format-List
# 3. Export for evidence / drift tracking
Add-PowerBIWorkspaceUser | Export-Clixml .\PowerBIWorkspaceUser-$(Get-Date -Format yyyyMMdd).xml
Syntax — 4 parameter sets
UserEmailWithId (Default)
Add-PowerBIWorkspaceUser [-Scope <PowerBIUserScope>] -Id <Guid> -UserPrincipalName <String>
-AccessRight <WorkspaceUserAccessRight> [<CommonParameters>]
PrincipalTypeWithId
Add-PowerBIWorkspaceUser [-Scope <PowerBIUserScope>] -Id <Guid> -AccessRight <WorkspaceUserAccessRight>
-PrincipalType <WorkspaceUserPrincipalType> -Identifier <String> [<CommonParameters>]
UserEmailWithWorkspace
Add-PowerBIWorkspaceUser [-Scope <PowerBIUserScope>] -UserPrincipalName <String>
-AccessRight <WorkspaceUserAccessRight> -Workspace <Workspace> [<CommonParameters>]
PrincipalTypeWithWorkspace
Add-PowerBIWorkspaceUser [-Scope <PowerBIUserScope>] -AccessRight <WorkspaceUserAccessRight>
-Workspace <Workspace> -PrincipalType <WorkspaceUserPrincipalType> -Identifier <String> [<CommonParameters>]
Parameters (7)
Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.