- Reference >
- mongo Shell Methods >
- Role Management Methods
Role Management MethodsΒΆ
Name | Description |
---|---|
db.createRole() | Creates a role and specifies its privileges. |
db.updateRole() | Updates a user-defined role. |
db.dropRole() | Deletes a user-defined role. |
db.dropAllRoles() | Deletes all user-defined roles associated with a database. |
db.grantPrivilegesToRole() | Assigns privileges to a user-defined role. |
db.revokePrivilegesFromRole() | Removes the specified privileges from a user-defined role. |
db.grantRolesToRole() | Specifies roles from which a user-defined role inherits privileges. |
db.revokeRolesFromRole() | Removes inherited roles from a role. |
db.getRole() | Returns information for the specified role. |
db.getRoles() | Returns information for all the user-defined roles in a database. |
Thank you for your feedback!
We're sorry! You can Report a Problem to help us improve this page.