Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save darrenjrobinson/ad826296b7550b7ad04a8a2c24ded808 to your computer and use it in GitHub Desktop.
Save darrenjrobinson/ad826296b7550b7ad04a8a2c24ded808 to your computer and use it in GitHub Desktop.
SailPoint IdentityNow Users Roles, Entitlements and Access Profiles. Supporting Blog Post can be found here https://blog.darrenjrobinson.com/creating-sailpoint-identitynow-certification-campaigns-using-powershell/
$roles = @()
$entitlements = @()
$accessProfiles = @()
foreach ($identity in $Accounts) {
write-host ""
Write-host "Details for $($identity.name)"
write-host " $($identity.source.name) : $($identity.displayName)"
foreach ($source in $identity.access) {
if ($source.type.Equals("ROLE")) {
$roles += $source.id
write-host -ForegroundColor Yellow " Source: $($source.displayName) Access Type: $($source.type)"
}
if ($source.type.Equals("ENTITLEMENT")) {
$entitlements += $source.id
write-host -ForegroundColor Yellow " Source: $($source.displayName) Access Type: $($source.type)"
}
if ($source.type.Equals("ACCESS_PROFILE")) {
$accessProfiles += $source.id
write-host -ForegroundColor Yellow " Source: $($source.displayName) Access Type: $($source.type)"
}
}
}
$roles = $roles | Select-Object -Unique
$entitlements = $entitlements | Select-Object -Unique
$accessProfiles = $accessProfiles | Select-Object -Unique
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment