Remove-FabricWorkspaceRoleAssignment
Removes a role assignment from a Fabric workspace.
Syntax
Remove-FabricWorkspaceRoleAssignment [-WorkspaceId] <guid> [-WorkspaceRoleAssignmentId] <guid>
[-WhatIf] [-Confirm] [<CommonParameters>]Description
The Remove-FabricWorkspaceRoleAssignment function deletes a specific role assignment from a Fabric workspace by making a DELETE request to the API.
Examples
Example 1
Removes the role assignment with the ID "role123" from the workspace "workspace123".
Remove-FabricWorkspaceRoleAssignment -WorkspaceId "workspace123" -WorkspaceRoleAssignmentId "role123"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -WorkspaceIdalias: Id | guid | ✓Required | 0 | – | The unique identifier of the workspace. |
| -WorkspaceRoleAssignmentId | guid | ✓Required | 1 | – | The unique identifier of the role assignment to be removed. |
| -Confirmalias: cf | switch | Named | – | Prompts you for confirmation before running the cmdlet. |
|
| -WhatIfalias: wi | switch | Named | – | Runs the command in a mode that only reports what would happen without performing the actions. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
- Calls
Confirm-TokenStateto ensure token validity before making the API request.
Author: Tiago Balabuch, Kamil Nowinski