FireDAC.Phys.MongoDBWrapper.TMongoDatabase.AddUser

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddUser(const AUserName, APassword: String; ARoles, ACustomData: TMongoDocument);

C++

void __fastcall AddUser(const System::UnicodeString AUserName, const System::UnicodeString APassword, TMongoDocument* ARoles, TMongoDocument* ACustomData);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Phys.MongoDBWrapper.pas
FireDAC.Phys.MongoDBWrapper.hpp
FireDAC.Phys.MongoDBWrapper TMongoDatabase

Description

Adds a user to the database.

AddUser receives the following parameters:

  • AUserName is the username of the new user.
  • APassword is the password of the new user, in plain text.
  • ARoles is a document that describes the roles of the new user. For information about the format of the roles document, see db.createUser(), MongoDB Manual.
  • ACustomData is a document that provides arbitrary information that you want to associate to the new user, such as the full name or the employee identifier of the user.

See Also