[ { "createRole": "myClusterwideAdmin", "privileges": [ { "resource": { "cluster": true }, "actions": [ "addShard" ] } ], "roles": [ { "role": "read", "db": "admin" } ] }, { "createUser": "accountAdmin01", "pwd": "123456", "roles": [ { "role": "clusterAdmin", "db": "admin" }, { "role": "readAnyDatabase", "db": "admin" }, "readWrite", "myClusterwideAdmin" ] } ]