Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson
Last active October 30, 2018 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenjrobinson/8a2af583b5eb30a252d006c708e82faf to your computer and use it in GitHub Desktop.
Save darrenjrobinson/8a2af583b5eb30a252d006c708e82faf to your computer and use it in GitHub Desktop.
Get SailPoint IdentityNow Sources. Associated Blog Post can be found here https://blog.darrenjrobinson.com/managing-sailpoint-identitynow-roles-via-api-and-powershell/
$RoleSourceName = "my IdentityNow Source"
$SourceList = Invoke-RestMethod -Method Get -Uri "https://$($orgName).api.identitynow.com/cc/api/source/list" -WebSession $IDN
# Get SourceID for the Auth Source for Suppliers
if ($SourceList){
foreach ($source in $SourceList) {
# SOURCES
# Which Source for Role Criteria Rules?
if ($source.name.Equals($RoleSourceName)){
$RoleSource = $source.externalId
write-host -ForegroundColor Blue "ROLE Source:$($source.name) SourceID:$($source.externalId)"
} else {
write-host -ForegroundColor yellow "Source:$($source.name) SourceID:$($source.externalId)"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment