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
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 WITHOUT the custom options from this package (Some text copied from https://docs.mongodb.com/manual/reference/method/db.createUser/#definition) This interface only exists, because mongodb dosnt provide such an interface for "createUser" (or as just very basic types)