| document type | cmdlet |
|---|---|
| external help file | FabricTools-Help.xml |
| HelpUri | |
| Locale | en-US |
| Module Name | FabricTools |
| ms.date | 04/01/2026 |
| PlatyPS schema version | 2024-05-01 |
| title | Get-FabricWorkspaceUser |
Retrieves the user(s) of a workspace.
Get-FabricWorkspaceUser -WorkspaceId <guid> [<CommonParameters>]
Get-FabricWorkspaceUser -Workspace <Object[]> [<CommonParameters>]
The Get-FabricWorkspaceUser function retrieves the details of the users of a workspace.
This example retrieves the users of a workspace of the workspace with the ID '12345678-1234-1234-1234-123456789012'.
Get-FabricWorkspaceUser -WorkspaceId '12345678-1234-1234-1234-123456789012This example retrieves the users of the prod-workspace workspace by piping the object.
$workspace = Get-FabricWorkspace -WorkspaceName 'prod-workspace'
$workspace | Get-FabricWorkspaceUserThis example retrieves the users of the prod-workspace workspace by piping the object.
Get-FabricWorkspaceUser -Workspace (Get-FabricWorkspace -WorkspaceName 'prod-workspace')This example retrieves the users of all of the workspaces. IMPORTANT: This will not return the workspace name or ID at present.
Get-FabricWorkspace| Get-FabricWorkspaceUserThis example retrieves the users of all of the workspaces and returns the workspace name as well.
Get-FabricWorkspace| Foreach-Object {
Get-FabricWorkspaceUser -WorkspaceId $_.Id | Select-Object @{Name='WorkspaceName';Expression={$_.displayName;}}, *
}The workspace object. This normally comes from the Get-FabricWorkspace cmdlet. This is a mandatory parameter if WorkspaceId is not provided.
Type: System.Object[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: WorkspaceObject
Position: Named
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The ID of the workspace. This is a mandatory parameter if Workspace is not provided.
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Id
ParameterSets:
- Name: WorkspaceId
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
{{ Fill in the Description }}
It supports multiple aliases for backward compatibility. The function defines parameters for the workspace ID and workspace object. If the parameter set name is 'WorkspaceId', it retrieves the workspace object. It then makes a GET request to the PowerBI API to retrieve the users of the workspace and returns the 'value' property of the response, which contains the users.
Author: Ioana Bouariu
{{ Fill in the related links here }}