Public/Get-GCUserStationAssociatedStation.ps1
|
<# .SYNOPSIS Retrieves the associated station for a user. .DESCRIPTION Returns the associated station information for the specified user in Genesys Cloud. Uses the GET /api/v2/users/{userId}/station/associatedstation endpoint. .PARAMETER UserId The unique identifier of the user. .EXAMPLE Get-GCUserStationAssociatedStation -UserId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: GET /api/v2/users/{userId}/station/associatedstation #> function Get-GCUserStationAssociatedStation { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$UserId ) $endpoint = "users/$UserId/station/associatedstation" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |