Last active
November 15, 2018 20:34
-
-
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/
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
$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