Files
sailpoint-cli/cmd/sdk/powershell/paginate.ps1
luke-hagar-sp ad8b3ba84f SDK templates
2023-06-26 12:06:47 -05:00

28 lines
451 B
PowerShell

$JSON = @"
{
"indices": [
"identities"
],
"query": {
"query": "*",
"fields": [
"name"
]
},
"sort": [
"-displayName"
]
}
"@
$Search = ConvertFrom-JsonToSearch -Json $JSON
try {
Invoke-PaginateSearch -Increment 50 -Limit 10000 -Search $Search
} catch {
Write-Host ("Exception occurred when calling Invoke-PaginateSearch: {0}" -f $_.ErrorDetails)
Write-Host ("Response headers: {0}" -f $_.Exception.Response.Headers)
}