class UserSettings (View source)

Represents settings for new/updated user.

Methods

fullName(string $fullName)

Sets full name of the user (optional).

password(string $password)

Sets password of the user.

role(string $role, string $bucket = null)

Adds role to the list of the accessible roles of the user.

Details

UserSettings fullName(string $fullName)

Sets full name of the user (optional).

Parameters

string $fullName

Full name of the user

Return Value

UserSettings

See also

https://developer.couchbase.com/documentation/server/5.0/rest-api/rbac.html More details

UserSettings password(string $password)

Sets password of the user.

Parameters

string $password

Password of the user

Return Value

UserSettings

See also

https://developer.couchbase.com/documentation/server/5.0/rest-api/rbac.html More details

UserSettings role(string $role, string $bucket = null)

Adds role to the list of the accessible roles of the user.

Parameters

string $role

identifier of the role

string $bucket

the bucket where this role applicable (or * for all buckets)

Return Value

UserSettings

See also

https://developer.couchbase.com/documentation/server/5.0/rest-api/rbac.html More details