Has anyone run into an issue adding a newly created Active Directory group as a Safe member via the CyberArk REST API?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Has anyone run into an issue adding a newly created Active Directory group as a Safe member via the CyberArk REST API?

L1 Bithead

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:

  • A new AD group is created.
  • When I try to add it as a Safe member via the API, CyberArk returns that the group cannot be found.
  • If I immediately go to the PVWA and add the exact same group manually, it finds it without any issues.
  • After the group has been added once through the PVWA, I can remove it and then add it successfully via the API.

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

3 REPLIES 3

L5 Sessionator

Hey @Henrique da costa​  Try the following solution: https://community.cyberark.com/s/article/PCloud-Adding-AD-Group-as-Safe-Member-via-Rest-API

I am using directory GUID unfortunately, but no dice.

I got it work by switching from "searchIN" to "directorySource"

  • 39 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!