Deprecated

Use the createUser command directly instead.

interface RoleSpecification {
    db: string;
    role: string;
}

Properties

Properties

db: string

The database this user's role should effect.

role: string

A role grants privileges to perform sets of actions on defined resources. A given role applies to the database on which it is defined and can grant access down to a collection level of granularity.