Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.