Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 310 Bytes

File metadata and controls

14 lines (12 loc) · 310 Bytes

Built-In Roles

Built-In Roles is any roles defined by mongodb. Built-in roles documentation

Create a user with built-in roles

db.createUser({
	user: '<user>',
	pwd: '<pwd>',
	roles: [{
		role: '<role>', db: '<db>'
	}]
})