MongoDB Documentation, Release 3.0.4 Table 6.1 – continued from previous page Continued on next page 429 6.4. Security Reference atype param result dropRole (page 420) { role: <role name>, db: <database> } 0 - Success dropAllRolesFromDatabase { db: <database> } 0 - Success grantRolesToRole { role: <role name>, db: <database>, roles: [ { role: <role name>, db: <database> }, ... ] } 0 - Success revokeRolesFromRole { role: <role name>, db: <database>, roles: [ { role: <role name>, db: <database> }, ... ] } 0 - Success grantPrivilegesToRole { role: <role name>, db: <database>, privileges: [ { resource: <resource document>, actions: [ <action>, ... ] }, ... ] } For details on the resource document, see Resource Document (page 417). For a list of actions, see Privilege Ac- tions (page 419). 0 - Success