Last active
March 13, 2019 02:51
-
-
Save darrenjrobinson/76036faad118d316dce4b9f27a633b2e to your computer and use it in GitHub Desktop.
Search SailPoint IdentityNow Identities using PowerShell and oAuth Token. Associated Blog Post https://blog.darrenjrobinson.com/using-sailpoint-identitynow-v3-apis-with-powershell/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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