Last active
October 30, 2018 05:45
-
-
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/
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
$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