Public/Get-GCAuthorizationRole.ps1
|
<# .SYNOPSIS Retrieves a single authorization role by ID. .DESCRIPTION Returns the details of a specific authorization role from Genesys Cloud. Uses the GET /api/v2/authorization/roles/{roleId} endpoint. .PARAMETER RoleId The unique identifier of the role to retrieve. .EXAMPLE Get-GCAuthorizationRole -RoleId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: GET /api/v2/authorization/roles/{roleId} #> function Get-GCAuthorizationRole { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$RoleId ) $endpoint = "authorization/roles/$RoleId" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |