Skip to main content

Update Users

The example-2 script authenticates an Integration Service client to manage Identities using the Admin identity created in example-0 and then performs the following tasks:

  1. Searches for a user.
  2. Updates said user's username.

You can run the example with the following command:

mvn exec:_java -Dexec.mainClass=net.gradbase.how_tos.UpdateUser

Example source code: Example-7

Search for a User

You can search for a user by the username field with the following script:

// Search for identities with username 'User' in it
List<IdentityInternal> identities = client.search(null, "User", null, null, null);