Public/Get-GCGroup.ps1

<#
.SYNOPSIS
    Retrieves a single group from Genesys Cloud by group ID.

.DESCRIPTION
    Queries the Genesys Cloud API to retrieve detailed information about a specific group.
    API Endpoint: GET /api/v2/groups/{groupId}

.PARAMETER GroupId
    The unique identifier of the group to retrieve.

.EXAMPLE
    Get-GCGroup -GroupId '12345678-1234-1234-1234-123456789012'
    Retrieves the group with the specified ID.

.NOTES
    Genesys Cloud API: GET /api/v2/groups/{groupId}
#>

function Get-GCGroup {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$GroupId
    )

    $endpoint = "groups/$GroupId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}