Get-AtriaWorkSpaceUserRole
SYNOPSIS
Retrieves roles assigned to a specific user.
SYNTAX
Get-AtriaWorkSpaceUserRole -CustomerId <Int> -UserId <Int> [<CommonParameters>]
DESCRIPTION
Retrieves all roles assigned to a specified user within the context of a specific customer by invoking the Atria API.
PARAMETERS
-
CustomerId
<Int>(Required)
The unique identifier (ID) of the customer. -
UserId
<Int>(Required)
The unique identifier (ID) of the user whose assigned roles you want to retrieve. -
<CommonParameters>
Supports common parameters:
Verbose,Debug,ErrorAction,ErrorVariable,WarningAction,WarningVariable,OutBuffer,PipelineVariable, andOutVariable.More info: about_CommonParameters.
OUTPUTS
Returns a collection of roles assigned to the specified user.
EXAMPLES
Example 1
PS> Get-AtriaWorkSpaceUserRole -CustomerId 1234 -UserId 5678
Retrieves roles assigned to the user with ID 5678 within customer ID 1234.
NOTES
Ensure you've authenticated using Connect-AtriaApi before invoking this function.