March 16, 2025
+ 12
The Java SDK lets you create users, assign them roles and associated privileges, and remove them from the system.

User-Management APIs

Users who have been assigned the Admin role for the cluster are able to create, edit, and remove users. The Java SDK provides APIs to support these activities. A high-level summary of the APIs can be found in User-Management, and details of all options in the UserManager API docs.

Using the UserManager API

The most common uses of the UserManager API are creating and listing users:

Creating Users
java
Unresolved include directive in modules/howtos/pages/sdk-user-management-example.adoc - include::devguide:example$scala/UserManagementExample.java[]
Listing Users
java
Unresolved include directive in modules/howtos/pages/sdk-user-management-example.adoc - include::devguide:example$scala/UserManagementExample.java[]

Using a user created in the SDK to access data:

java
Unresolved include directive in modules/howtos/pages/sdk-user-management-example.adoc - include::devguide:example$scala/UserManagementExample.java[]

Further Reading

The SDK also contains management APIs for dealing with Cluster resources.