- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-16-2026 06:23 AM
Has anyone run into an issue adding a newly created Active Directory group as a Safe member via the CyberArk REST API?
Here's what I'm seeing:
This behavior is causing problems for a ServiceNow integration we're building, where we need to automate Safe creation and membership assignment.
I've ruled out AD replication delays—I even tested with a group that had existed for 4 days, and the API still could not find it until it had first been added manually through the PVWA.
Has anyone experienced this before? Is there a way to force the API to resolve or refresh newly created directory objects, or is there another workaround that doesn't require the group to be added manually first?
Any suggestions would be greatly appreciated.
PCLOUD
07-16-2026 08:15 AM
Hey @Henrique da costa Try the following solution: https://community.cyberark.com/s/article/PCloud-Adding-AD-Group-as-Safe-Member-via-Rest-API
07-16-2026 08:19 AM
I am using directory GUID unfortunately, but no dice.
07-17-2026 09:26 AM
I got it work by switching from "searchIN" to "directorySource"
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

