Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Search SailPoint IdentityNow Identities using PowerShell and oAuth Token. Associated Blog Post https://blog.darrenjrobinson.com/using-sailpoint-identitynow-v3-apis-with-powershell/
# Search Limit
$searchLimit = '100'
# Search Identities URI
$searchURI = "https://$($orgName).api.identitynow.com/v2/search/identities?"
# 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
You can’t perform that action at this time.