PAM SCIM API - Reset Password - CyberArk

Is it possible with SCIM PAM module to update password on existing privileged item in CyberArk ?

I know we can create new privileged item with scim pam api but not getting idea if we can update/reset password for existing (after creation) privileged item.

I tried below but no luck:

ProvisioningPlan testPlanOnly = new ProvisioningPlan();
testPlanOnly.setTargetIntegration(“appName”); // give actual application name

ObjectRequest testobjonly = new ObjectRequest();
testobjonly.setApplication(“appName”); // give actual application name
testobjonly.setOp(ObjectOperation.Modify);
testobjonly.setType(“PrivilegedData”);

testobjonly.setTargetName(“complete long string which is a ‘value’ of the privileged item under entitlement catalog”);

testobjonly.add(new AttributeRequest(“password”, ProvisioningPlan.Operation.Set, “test12345”)); // Here I want to change the password of existing privileged item

testPlanOnly.add(testobjonly);

Provisioner provisioner = new Provisioner(context);
ProvisioningProject testOnlyproj = provisioner.compile(testPlanOnly);
provisioner.execute(testOnlyproj);

Hey @ManpreetSingh - welcome to the developer community!

I’m not sure if the CyberArk SCIM server supports a PUT/PATCH operation on the /PrivilegedData endpoint, but I will check with my counterpart over there - specifically about password modifications.

In the meantime, is this something you can successfully test using an API client like Postman? If you can do it in Postman, we can most likely configure a plan to do the same.

1 Like