For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-DSRoleAssignment

Synopsis

Get administrative role assignments at a scope.

Syntax

__AllParameterSets

Get-DSRoleAssignment [-ScopeType <AdministrativeRoleAssignmentScopeType>] [-ScopeID <guid>]
 [-RoleID <guid>] [-PrincipalId <guid>] [-Filter <string>] [<CommonParameters>]

Description

Get every administrative role holding an assignment at the given scope, with its assigned members. Replacement for Get-DSVaultPermission on servers managing vault access through administrative role assignments.

Examples

Example 1

PS C:\> Get-DSRoleAssignment -ScopeID $vaultID

Get every role assigned on the vault whose ID is $vaultID.

Example 2

PS C:\> Get-DSRoleAssignment

Get every role assignment on the server, across every scope type.

Parameters

-Filter

Free-text filter.

-PrincipalId

ID of the user, user group, or application identity to filter on.

-RoleID

Administrative role ID to filter on.

-ScopeID

Scope resource ID to filter on: a vault ID when -ScopeType is Repository, a gateway ID when Gateway, a PAM provider ID when PamProvider, or a business unit ID when OrganizationalUnit.

-ScopeType

Scope type to filter on. When omitted, assignments across every scope type are returned.

CommonParameters

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.

Outputs

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSRoleAssignmentScope

Notes

For more information, type "Get-Help Get-DSRoleAssignment -detailed". For technical information, type "Get-Help Get-DSRoleAssignment -full".

Last updated

Was this helpful?