Optional
authenticationThe authentication restrictions the server enforces on the created user. Specifies a list of IP addresses and CIDR ranges from which the user is allowed to connect to the server or from which the server can accept users.
Optional
clientOptional
serverUsername
Optional
customAny arbitrary information. This field can be used to store any data an admin wishes to associate with this particular user.
this could be the user’s full name or employee id.
Optional
databaseIn which Database to create this user in
'admin' by default the "admin" database is used
Optional
digestIndicates whether the server or the client digests the password. "true" - The Server digests the Password "false" - The Client digests the Password
Optional
mechanismsSpecify the specific SCRAM mechanism or mechanisms for creating SCRAM user credentials.
Password
The Roles for the user, can be an empty array
Generated using TypeDoc
Interface options for "db.createUser" (used for this package) This interface is WITH the custom options from this package (Some text copied from https://docs.mongodb.com/manual/reference/method/db.createUser/#definition)