Public/Get-GCUserStation.ps1
|
<# .SYNOPSIS Retrieves the station information for a user in Genesys Cloud. .DESCRIPTION Queries the Genesys Cloud API to retrieve the station association for a specific user, including the associated station, default station, and effective station. API Endpoint: GET /api/v2/users/{userId}/station .PARAMETER UserId The unique identifier of the user. .EXAMPLE Get-GCUserStation -UserId '12345678-1234-1234-1234-123456789012' Retrieves the station information for the specified user. .NOTES Genesys Cloud API: GET /api/v2/users/{userId}/station #> function Get-GCUserStation { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$UserId ) $endpoint = "users/$UserId/station" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |