mongosh

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

I think