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