Table of Contents

Method AddUser

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

AddUser(MongoUser)

Adds a user to this database.

[Obsolete("Use the new user management command 'createUser' or 'updateUser'.")]
public virtual void AddUser(MongoUser user)

Parameters

user MongoUser

The user.