MongoDB Documentation, Release 3.0.4 Table 6.1 – continued from previous page Chapter 6. Security 428 Continued on next page atype param result createRole (page 420) { role: <role name>, db: <database>, roles: [ { role: <role name>, db: <database> }, ... ], privileges: [ { resource: <resource document>, actions: [ <action>, ... ] }, ... ] } The roles and the privileges fields are optional. For details on the resource document, see Resource Document (page 417). For a list of actions, see Privilege Ac- tions (page 419). 0 - Success updateRole { role: <role name>, db: <database>, roles: [ { role: <role name>, db: <database> }, ... ], privileges: [ { resource: <resource document>, actions: [ <action>, ... ] }, ... ] } The roles and the privileges fields are optional. For details on the resource document, see Resource Document (page 417). For a list of actions, see Privilege Ac- tions (page 419). 0 - Success