Activate 'db_user' user.
The ID of the user to activate.
true if the user has been successfully activated.
Assign roles to a user.
The name or names of the roles to assign.
The ID of the user to assign the roles to.
A promise that resolves when the roles are assigned.
Retrieve information about the 'db_user' / 'db_env_user' user.
The ID of the user to get.
Optionalopts: GetUserOptionsID, status, and assigned roles of a 'db_*' user.
Create a new 'db_user' user.
The ID of the user to create. Must consist of valid URL characters only.
API key for the newly created user.
Deactivate 'db_user' user.
The ID of the user to deactivate.
Optionalopts: DeactivateOptionstrue if the user has been successfully deactivated.
Delete a 'db_user' user. It is not possible to delete 'db_env_user' users programmatically.
The ID of the user to delete.
true if the user has been successfully deleted.
Retrieve the roles assigned to a 'db_user' user.
The ID of the user to retrieve the assigned roles for.
Optionalopts: GetAssignedRolesOptionsA map of role names to their respective roles.
List all 'db_user' / 'db_env_user' users.
Optionalopts: GetUserOptionsID, status, and assigned roles for each 'db_*' user.
Revoke roles from a user.
The name or names of the roles to revoke.
The ID of the user to revoke the roles from.
A promise that resolves when the roles are revoked.
Rotate the API key of a 'db_user' user. The old API key becomes invalid. API keys of 'db_env_user' users are defined in the server's environment and cannot be modified programmatically.
The ID of the user to create a new API key for.
New API key for the user.
Operations supported for namespaced 'db' users.