FabricTools v0.33.0 Public Preview

Get-FabricWorkspaceRoleAssignment

Retrieves role assignments for a specified Fabric workspace.

Syntax

Get-FabricWorkspaceRoleAssignment [-WorkspaceId] <guid> [[-WorkspaceRoleAssignmentId] <guid>]
 [<CommonParameters>]

Description

The Get-FabricWorkspaceRoleAssignments function fetches the role assignments associated with a Fabric workspace by making a GET request to the API. If WorkspaceRoleAssignmentId is provided, it retrieves the specific role assignment.

Examples

Example 1

Fetches all role assignments for the workspace with the ID "workspace123".

Get-FabricWorkspaceRoleAssignments -WorkspaceId "workspace123"

Example 2

Fetches the role assignment with the ID "role123" for the workspace "workspace123".

Get-FabricWorkspaceRoleAssignments -WorkspaceId "workspace123" -WorkspaceRoleAssignmentId "role123"

Parameters

NameTypeReq.Pos.PipelineDescription
-WorkspaceIdalias: Id guid ✓Required 0 –

The unique identifier of the workspace to fetch role assignments for.

-WorkspaceRoleAssignmentId guid 1 –

(Optional) The unique identifier of a specific role assignment to retrieve.

This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.

Outputs

System.Object[]

{{ Fill in the Description }}

Notes

  • Calls Confirm-TokenState to ensure token validity before making the API request.

Author: Tiago Balabuch, Kamil Nowinski