couchbase
    Preparing search index...

    Class UserManager

    UserManager is an interface which enables the management of users, groups and roles for the cluster.

    Index

    Methods

    • Change password for the currently authenticatd user.

      Parameters

      • newPassword: string

        The new password to be applied.

      • Optionaloptions: ChangePasswordOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Drops an existing group.

      Parameters

      • groupName: string

        The name of the group to drop.

      • Optionaloptions: DropGroupOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Drops an existing user.

      Parameters

      • username: string

        The username of the user to drop.

      • Optionaloptions: DropUserOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Returns a group by it's name.

      Parameters

      • groupName: string

        The name of the group to retrieve.

      • Optionaloptions: GetGroupOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<Group>

        A node-style callback to be invoked after execution.

      Returns Promise<Group>

    • Returns a list of roles available on the server.

      Parameters

      • Optionaloptions: GetRolesOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<Role[]>

        A node-style callback to be invoked after execution.

      Returns Promise<Role[]>

    • Creates or updates an existing group.

      Parameters

      • group: IGroup

        The group to update.

      • Optionaloptions: UpsertGroupOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Creates or updates an existing user.

      Parameters

      • user: IUser

        The user to update.

      • Optionaloptions: UpsertUserOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>