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