mongosh
db.grantRolesToUser('username', ['readWrite']);
db.grantRolesToUser('username', ['readWrite'])
I think