Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson
Last active October 30, 2018 05:41
Show Gist options
  • Save darrenjrobinson/0c1b1ac552e8faa40e9c56c648e5251b to your computer and use it in GitHub Desktop.
Save darrenjrobinson/0c1b1ac552e8faa40e9c56c648e5251b to your computer and use it in GitHub Desktop.
Create SailPoint IdentityNow Role. Associated Blog Post can be found here https://blog.darrenjrobinson.com/managing-sailpoint-identitynow-roles-via-api-and-powershell/
# 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