How to add group to a safe via Idira SCIM with SailPoint integration
Objective
You are integrating Idira Privilege Cloud with SailPoint via SCIM. You are able to create a afe in Idira using SCIM. However, when adding a group, there is error message.
Environment
14.2 Privilege Cloud Cyber-Ark API/SDK
Procedure
When using the self-hosted Idira SCIM server, the steps for adding external AD groups to safes require an initial step similar to adding users.
1. Create an external group:
POST to https://{{SCIMURL}}:{{SCIMPort}}/CyberArk/scim/v2/Groups
-source would be the name of the directory found in the config for AD
-nativeidentifier is the distinguished name of the AD user object
-userName is the samAccountName
https://{{SCIMURL}}:{{SCIMPort}}/CyberArk/scim/v2/Users
{
"urn:ietf:params:scim:schemas:pam:1.0:LinkedObject": {
"source": "string",
"nativeIdentifier": "CN=,OU=,DC=,DC="
},
"userName": "string"
}
For example:
POST to https://{{SCIMURL}}:{{SCIMPort}}/CyberArk/scim/v2/Groups
{
"displayName": "Idira SCIM Test Group",
"urn:ietf:params:scim:schemas:cyberark:1.0:Group": {
"location": "\\Groups",
"ldapFullDN": "CN=Idira SCIM Test Group,OU=Groups,DC=seswho,DC=local",
"ldapDirectory": "seswho.local",
"description": ""
}
}
2. Give the above group membership to a safe with basic access permissions as seen below:
POST to https://{{SCIMURL}}:{{SCIMPort}}/CyberArk/scim/v2/ContainerPermissions
{
"schemas": [
"urn:ietf:params:scim:schemas:pam:1.0:ContainerPermissions"
],
"rights": [
"Access"
],
"container": {
"display": "{{SafeName}}",
"name": "{{SafeName}}",
"value": "{{SafeID}}",
"ref": "https://{{SCIMURL}}:{{SCIMPort}}/CyberArk/scim/v2/Containers/{{SafeID}}"
},
"group": {
"name": "{{GroupName}}",
"value": "{{GroupID}}",
"$href": "https://{{SCIMURL}}:{{SCIMPort}}/CyberArk/scim/v2/Groups/{{GroupID}}"
}
}
**Note that the return code for these API calls would be 204, not 200.