Privilege Cloud Shared Services - How to find the domain ID for the searchIn parameter when running Add Safe Member RESTAPI?

Privilege Cloud Shared Services - How to find the domain ID for the searchIn parameter when running Add Safe Member RESTAPI?

95
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:54 PM


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:

https://docs.cyberark.com/privilege-cloud-shared-services/latest/en/content/webservices/add%20safe%20member.htm#Bodyparameters

 

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"
    }
  ]
}



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000uK0CAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail