Public/Get-GCGamificationScoreboard.ps1

<#
.SYNOPSIS
    Retrieves gamification scoreboard for a user.

.DESCRIPTION
    Returns the gamification scorecards for the specified user in Genesys Cloud.
    Uses the GET /api/v2/gamification/scorecards/users/{userId} endpoint.

.PARAMETER UserId
    The unique identifier of the user whose scoreboard to retrieve.

.EXAMPLE
    Get-GCGamificationScoreboard -UserId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: GET /api/v2/gamification/scorecards/users/{userId}
#>

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

    $endpoint = "gamification/scorecards/users/$UserId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}