developer/api/v1/users/Grant-UsersAuthorization.ps1
function Grant-UsersAuthorization { param( [Parameter(Mandatory)] [string] $AppAlias, [Parameter(Mandatory)] [string] $VersionAlias, [Parameter(Mandatory)] [string[]] $UserIds, [Parameter(Mandatory)] [string] $PlanName ) return Invoke-Api Post "/developer/api/v1/apps/$AppAlias/versions/$VersionAlias/users" -JsonBody @{ "userIdentifiers" = $UserIds "planName" = $PlanName } } |