Class CreateUserRequest

Assembly: redb.Core.dll

Request for creating new user

public class CreateUserRequest

Inheritance

ObjectCreateUserRequest

Properties

CodeGuid

GUID user code (optional)

public Guid? CodeGuid { get; set; }

CodeInt

Integer user code (optional)

public long? CodeInt { get; set; }

CodeString

String user code (optional)

public string? CodeString { get; set; }

DateRegister

Registration date (if not specified, current date is used)

public DateTimeOffset? DateRegister { get; set; }

Email

User email (optional)

public string? Email { get; set; }

Enabled

Is user active upon creation

public bool Enabled { get; set; }

Key

Additional user key (optional)

public long? Key { get; set; }

Login

User login (unique)

public string Login { get; set; }

Name

User name

public string Name { get; set; }

Note

Note or comment for user (optional)

public string? Note { get; set; }

Password

User password (in plain text, will be hashed)

public string Password { get; set; }

Phone

User phone (optional)

public string? Phone { get; set; }

RoleNames

Role names to assign to user upon creation

public string[]? RoleNames { get; set; }

Roles

Roles to assign to user upon creation (objects)

public IRedbRole[]? Roles { get; set; }