Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enabling SailPoint IdentityNow Roles to be requestable. Associated Blog Post is located here https://blog.darrenjrobinson.com/enabling-requestable-roles-in-sailpoint-identitynow-using-powershell/
# Orgname
$orgName = "myOrg"
# Roles
$GetRoleListBaseURI = "https://$($orgName).api.identitynow.com/cc/api/role/list"
# Update Role
$UpdateRoleListBaseURI = "https://$($orgName).api.identitynow.com/cc/api/role/update"
# Existing Roles
$existingRoles = Invoke-RestMethod -method Get -uri $GetRoleListBaseURI -WebSession $IDN
foreach ($role in $existingRoles.items){
write-host -ForegroundColor Yellow "For the $($role.description) role, Disabled: $($role.disabled), Requestable: $($role.requestable)"
$role.requestable = "True"
# Update Role to be requestable
$updateRole = Invoke-RestMethod -Method Post -uri $UpdateRoleListBaseURI -Body ($role | ConvertTo-Json) -WebSession $IDN
}
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.