Unable to Delete AD Group from Safe – 404 Error in PVWA API

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

Unable to Delete AD Group from Safe – 404 Error in PVWA API

L2 Linker

Question 1:

When i try to delete the Safe member permission group from the Safe, we are unable to do so. This group is an AD group added under the Safe member permission like "domain/group1". When i attempt to remove the group, we receive a 404 – File or directory not found error.

We tried encoding the “/” as %2F, but we still get the same error. When deleting a Vault group, I was able to remove it successfully. The API user has full permissions and is the same user under which the Safe was created.

I found an old article stating that “/” is not whitelisted on the PVWA side.

Question 2:

If I delete the above group from Active Directory, will that group also be removed from the Safe members list automatically?

1 accepted solution

Accepted Solutions

L2 Linker

@Malhar Vora​ thanks

Here the conclusion after having testing in my lab

If you need to remove an AD group from CyberArk Safe member permissions and the group appears as domain/group (due to AppendFriendlyDomainNameToGroup set to "Yes"), standard PVWA API, UI, and URL encoding methods will fail only PACLI and PrivateArk tools can successfully remove such groups from safes.

 

In case of PVWA, For complete removal from all safes, use the Group API endpoint (/PasswordVault/API/UserGroups/{GroupID}/with the GroupID; this detaches the group from all safes. This approach is confirmed to work when other methods fail, especially in environments where AD groups are added in the "domain/group" format. 

 

View solution in original post

3 REPLIES 3

L2 Linker

Hi

 

Can you verify LDAP is working by adding new domain user in safe

L7 Applicator

Hi @Nitesh Bhat​ 

 

This is due to / not allowed and also API doesn’t allow encoded parameters.

 

This is because PVWA interprets /group1 as a subdirectory and not part of the member name.

 

 

https://docs.cyberark.com/pam-self-hosted/latest/en/content/webservices/update%20safe%20member.htm?

L2 Linker

@Malhar Vora​ thanks

Here the conclusion after having testing in my lab

If you need to remove an AD group from CyberArk Safe member permissions and the group appears as domain/group (due to AppendFriendlyDomainNameToGroup set to "Yes"), standard PVWA API, UI, and URL encoding methods will fail only PACLI and PrivateArk tools can successfully remove such groups from safes.

 

In case of PVWA, For complete removal from all safes, use the Group API endpoint (/PasswordVault/API/UserGroups/{GroupID}/with the GroupID; this detaches the group from all safes. This approach is confirmed to work when other methods fail, especially in environments where AD groups are added in the "domain/group" format. 

 

  • 1 accepted solution
  • 182 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!