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