Privilege Cloud Shared Services - How to find the domain ID for the searchIn parameter when running Add Safe Member RESTAPI?
Objective
When running Add Safe member RESTAPI in Privilege Cloud Shared Services, you can use the domain ID of the domain in the searchIn body parameter to search user name or group name within the domain.
Reference document:
How to find the domain ID of the domain?
Environment
14.3 Privilege Cloud Cyber-Ark API/SDK
Procedure
You can run the following RESTAPI:
GET https://<subdomain>.privilegecloud.cyberark.cloud/PasswordVault/API/settings/AddSafeMember
The result contains an array element named Directories, under it a list of directory names and IDs.
e.g.
{
"IdentityUM": true,
"ExternalServiceAddress": "https://aat1234.id.cyberark.cloud",
"OnPremiseMemberTypes": [
"User",
"Group"
],
"IdentityMemberTypes": [
"User",
"Group",
"Role"
],
"Directories": [
{
"Name": "Idaptive Idira Cloud Directory",
"ID": "09B9A9B0-6CE8-465F-AB03-65766D33B09A"
}
{
"Name": "Active Directory: acme.corp",
"ID": "419021f3-6f53-c915-1d23-11876c741222"
}
]
}