Self-service user profile management

This guide helps the client application integrate self-service user profile management to modify the data of the user using CyberArk Identity APIs into their Java application using the Java SDK.

The Java SDK provides a User Management module that helps the client applications to integrate the user registration.



Install the CyberArk Identity Java SDK

Configure User Management Instance

Create a UserManagement object instance by providing the CyberArk Identity Application URL as shown below:

// import
import com.cyberark.client.UserManagement;

UserManagement userMgmt = new UserManagement(tenantURL);

Update user profile

The user data can be updated by the following method in Java SDK:


The user should be authenticated and the bearer token should be passed to the update profile method, to update the details of the user.

try {
     Map<String, Object> attributes = new HashMap<>();
     attributes.put("Mail", "YOUR_EMAIL");
     attributes.put("MobileNumber", "YOUR_MOBILE_NUMBER");
     attributes.put("DisplayName", "YOUR DISPLAY NAME");
     SignUpResponse signUpResponse = userManagement.updateProfile("YOUR_BEARER_TOKEN", userJson).execute();
} catch (IdentityException e) {
     //Something happened

Update profile in Java angular sample app



  1. Install the CyberArk Identity Java-angular sample app
  2. Setup the Java-angular sample app

The Java angular sample app contains examples of how the client application can integrate the CyberArk Identity self-service user profile update APIs.

To try out the User profile update API integration on the sample app, log in to the sample app with any of the three methods. Once logged in click on the "Update profile" tab. The user details are displayed.

The user is allowed to edit the details and use the Update button to submit the details.


post successful update, a message gets displayed on the same screen as shown below: