mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-07 20:57:46 +00:00
28 lines
451 B
PowerShell
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)
|
|
} |