MongoDB Documentation, Release 3.0.4 Table 6.1 – continued from previous page atype param result dropAllUsersFromDatabase { db: <database> } 0 - Success updateUser { user: <user name>, db: <database>, passwordChanged: <boolean>, customData: <document>, roles: [ { role: <role name>, db: <database> }, ... ] } The customData field is optional. 0 - Success grantRolesToUser { user: <user name>, db: <database>, roles: [ { role: <role name>, db: <database> }, ... ] } 0 - Success revokeRolesFromUser { user: <user name>, db: <database>, roles: [ { role: <role name>, db: <database> }, ... ] } 0 - Success Continued on next page 427 6.4. Security Reference