Public/Requests/Get-SCAAccessRequestForm.ps1

function Get-SCAAccessRequestForm {
    <#
    .SYNOPSIS
        Gets the access request form structure configured for the tenant.
    .DESCRIPTION
        Calls GET /workflows/request-forms on the Access Requests API. The request form structure
        is tenant-configurable, so this returns whichever questions and target categories the
        tenant currently has defined rather than a fixed set psSCA assumes in advance.
    .PARAMETER Session
        A psSCA.Session object or session name. Defaults to the current default session.
    .EXAMPLE
        Get-SCAAccessRequestForm

        Returns the current access request form structure, useful for discovering what fields
        New-SCAAccessRequest needs to supply.
    .INPUTS
        None.
    .OUTPUTS
        psSCA.AccessRequestForm
    .LINK
        https://api-docs.cyberark.com/access-request-api/docs/access-request-api
    #>

    [CmdletBinding()]
    [OutputType('psSCA.AccessRequestForm')]
    param(
        [Parameter()]
        [object]$Session
    )

    Invoke-SCARequest -Session $Session -Service 'UAR' -Method GET -Path '/workflows/request-forms' `
        -Operation 'Get-SCAAccessRequestForm' -TypeName 'psSCA.AccessRequestForm'
}