Instantly share code, notes, and snippets.

Embed
What would you like to do?
Query SailPoint IdentityNow using the Search API. Base Setup Script
# IdentityNow Search via API
# API Access Client ID
$clientID = 'yourClientID'
# API Access Client Secret
$clientSecret = 'yourClientSecret'
# Basic Auth
$Bytes = [System.Text.Encoding]::utf8.GetBytes("$($clientID):$($clientSecret)")
$encodedAuth =[Convert]::ToBase64String($Bytes)
# IdentityNow Organisation
$org = "yourOrgname"
# Search Limit. 1000 is the maximum
$searchLimit = '1000'
# Search Identities
$URI = "https://$($org).api.identitynow.com/v2/search/identities?"
# Search Entitlements
#$URI = "https://$($org).api.identitynow.com/v2/search/entitlements?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment