Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create SailPoint IdentityNow Role
# Create New Role Group
# Role Details
$body = @{
"name" = "Role - Darren J Robinson";
"displayName" = "Darren J Robinson";
"description" = "Darren J Robinson Role";
"disabled" = $false;
"owner" = "tenant_admin"
}
$body = $body | ConvertTo-Json
$createRoleURI = "https://$($orgName).api.identitynow.com/cc/api/role/create"
$createRoleGroup = Invoke-RestMethod -Method POST -Uri $createRoleURI -Body $body -WebSession $IDN -Verbose
$createRoleGroup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment