Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Enabling SailPoint IdentityNow Roles to be requestable. Associated Blog Post is located here
# Orgname
$orgName = "myOrg"
# Roles
$GetRoleListBaseURI = "https://$($orgName)"
# Update Role
$UpdateRoleListBaseURI = "https://$($orgName)"
# 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.