User Management

  • how-to
The Node.js 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 Node.js 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
Unresolved include directive in modules/howtos/pages/sdk-user-management-example.adoc - include::example$user-manager.js[]
Listing Users
Unresolved include directive in modules/howtos/pages/sdk-user-management-example.adoc - include::example$user-manager.js[]

Using a user created in the SDK to access data:

Unresolved include directive in modules/howtos/pages/sdk-user-management-example.adoc - include::example$user-manager.js[]

Further Reading

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