db.createUser({
	// Authentication
	username: "[email protected]",
	pwd: "hello123",
	
	// Authorization
	roles: [
		{role: "read", db: "accounts"},
		{role: "readWrite", db: "analytics"}
	]
})

Lab