Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Search SailPoint IdentityNow Identities using PowerShell and oAuth Token. Associated Blog Post
# Search Limit
$searchLimit = '100'
# Search Identities URI
$searchURI = "https://$($orgName)"
# Query for Users on a Source
$query = '@accounts(Active Directory)'
# Search Accounts
$Accounts = Invoke-RestMethod -Method Get -Uri "$($searchURI)limit=$($searchLimit)&query=$($query)" -Headers @{Authorization = "Bearer $($Global:v3Token.access_token)"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment