Class User
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
A user of the system. A user can be a MyGeotab user or a user that is a Driver.
[ReportClass]
public class User : NameEntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion, IGroupLinked, IDefaultable, IMediaFiles, IInstanceSizeEstimate
- Inheritance
-
User
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
User()
Initializes a new instance of the User class.
public User()
User(Id?)
Initializes a new instance of the User class.
public User(Id? id)
Parameters
User(Id?, long?, string?, string?, string?, string?, string?, UserAuthenticationType?, string?, string?, string?, DateTime?, DateTime?, IList<Group>?, IList<Group>?, IList<Group>?, IList<Group>?, ClientSettings?, Certificate?, DateTime?, IList<MediaFile>?, GroupFilter?, IAMMetadata?)
Initializes a new instance of the User class.
public User(Id? id, long? version, string? userId, string? email, string? firstName, string? lastName, string? password, UserAuthenticationType? loginType, string? comment, string? designation, string? employeeNo, DateTime? activeFrom, DateTime? activeTo, IList<Group>? companyGroups, IList<Group>? reportGroups, IList<Group>? securityGroups, IList<Group>? privateUserGroups, ClientSettings? clientSettings, Certificate? issuerCertificate, DateTime? lastAccessDate = null, IList<MediaFile>? mediaFiles = null, GroupFilter? accessGroupFilter = null, IAMMetadata? iamMetadata = null)
Parameters
id
IdThe Id.
version
long?The version.
userId
stringThe user ID.
email
stringThe user email.
firstName
stringThe first name of the user.
lastName
stringThe last name of the user.
password
stringThe password.
loginType
UserAuthenticationType?comment
stringThe comment.
designation
stringThe designation.
employeeNo
stringThe employeeNo.
activeFrom
DateTime?The DateTime from when the User is valid.
activeTo
DateTime?The DateTime to when the User is valid.
companyGroups
IList<Group>Group collection this user belongs to.
reportGroups
IList<Group>Group collection this user belongs to with only report access.
securityGroups
IList<Group>Group collection that defines what parts of the system the user has access to. The Group(s) are located under the SecurityGroup system Group.
privateUserGroups
IList<Group>The private user group collection which is specifically used for generate dashboard and email report for the user itself.
clientSettings
ClientSettingsThe ClientSettings for this User.
issuerCertificate
CertificateThe issuer Certificate. Only needed for users not using basic authentication.
lastAccessDate
DateTime?The DateTime that user last accessed.
mediaFiles
IList<MediaFile>The list of MediaFile of MediaType Image for the display pictures of this user
accessGroupFilter
GroupFilterAccess Group Filter for the userqa
iamMetadata
IAMMetadataThe IAMMetadata for the User.
User(Id, string, string, string, string, string, UserAuthenticationType?, string, string, string, DateTime?, DateTime?, IList<Group>, IList<Group>, IList<Group>, IList<Group>, ClientSettings, Certificate, DateTime?, IList<MediaFile>?, IAMMetadata?)
Initializes a new instance of the User class.
[Obsolete("Use constructor with version", false)]
public User(Id id, string userId, string email, string firstName, string lastName, string password, UserAuthenticationType? loginType, string comment, string designation, string employeeNo, DateTime? activeFrom, DateTime? activeTo, IList<Group> companyGroups, IList<Group> reportGroups, IList<Group> securityGroups, IList<Group> privateUserGroups, ClientSettings clientSettings, Certificate issuerCertificate, DateTime? lastAccessDate = null, IList<MediaFile>? mediaFiles = null, IAMMetadata? iamMetadata = null)
Parameters
id
IdThe Id.
userId
stringThe user ID.
email
stringThe user email.
firstName
stringThe first name of the user.
lastName
stringThe last name of the user.
password
stringThe password.
loginType
UserAuthenticationType?comment
stringThe comment.
designation
stringThe designation.
employeeNo
stringThe employeeNo.
activeFrom
DateTime?The DateTime from when the User is valid.
activeTo
DateTime?The DateTime to when the User is valid.
companyGroups
IList<Group>Group collection this user belongs to.
reportGroups
IList<Group>Group collection this user belongs to with only report access.
securityGroups
IList<Group>Group collection that defines what parts of the system the user has access to. The Group(s) are located under the SecurityGroup system Group.
privateUserGroups
IList<Group>The private user group collection which is specifically used for generate dashboard and email report for the user itself.
clientSettings
ClientSettingsThe ClientSettings for this User.
issuerCertificate
CertificateThe issuer Certificate. Only needed for users not using basic authentication.
lastAccessDate
DateTime?The DateTime that user last accessed.
mediaFiles
IList<MediaFile>The list of MediaFile of MediaType Image for the display pictures of this user
iamMetadata
IAMMetadataThe IAMMetadata for the User.
User(User)
Initializes a new instance of the User class.
protected User(User user)
Parameters
user
UserThe user.
Properties
AcceptedEULA
Gets or sets a value indicating the user accepted MyGeotab EULA revision number. Default [null].
public int? AcceptedEULA { get; set; }
Property Value
AccessGroupFilter
Gets or sets the GroupFilter that the user belongs to, which is used to determine what the user can see within the database.
public GroupFilter? AccessGroupFilter { get; set; }
Property Value
ActiveDashboardReports
Gets or sets the list of active dashboards for the user, displayed on the dashboard page. Default [empty].
public string[]? ActiveDashboardReports { get; set; }
Property Value
- string[]
ActiveDashboardReports
ActiveDefaultDashboards
Gets or sets the list of default dashboards which must show real data. Default [empty].
public string[]? ActiveDefaultDashboards { get; set; }
Property Value
- string[]
ActiveDefaultDashboards
ActiveFrom
Gets or sets the date the user is active from. Default [UtcNow].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserActiveFrom })]
public DateTime? ActiveFrom { get; set; }
Property Value
ActiveTo
Gets or sets the date the user is active to. Default [MaxDate].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserActiveTo })]
public DateTime? ActiveTo { get; set; }
Property Value
AuthorityAddress
Gets or sets the HOS authority address of the user. Default [""].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserAuthorityAddress })]
public string? AuthorityAddress { get; set; }
Property Value
AuthorityName
Gets or sets the HOS authority name of the user. Default [""].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserAuthorityName })]
public string? AuthorityName { get; set; }
Property Value
AvailableDashboardReports
Gets or sets list of all available dashboard reports to the user. Default [empty].
public string[]? AvailableDashboardReports { get; set; }
Property Value
- string[]
ICollection<T>AvailableDashboardReports
Bookmarks
Gets or sets the list of bookmarked pages. Default [empty].
public string[]? Bookmarks { get; set; }
Property Value
CannedResponseOptions
Gets or sets the user's stored list of custom response options to choose from when sending a TextMessage. Each item is a set of predefined response options. Default [empty].
public string[][]? CannedResponseOptions { get; set; }
Property Value
- string[][]
ICollection<T> List of custom responses for text messages.
CarrierNumber
Gets or sets the carrier number. Default [""].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserCarrierNumber })]
public string? CarrierNumber { get; set; }
Property Value
ChangePassword
Gets or sets a flag indicating whether the user's password requires resetting. If [true], the user will be forced to change their password on next login. Default [false].
public bool? ChangePassword { get; set; }
Property Value
Comment
Gets or sets free text field where any user information can be stored and referenced for this entity. Default [""].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserComment })]
public string? Comment { get; set; }
Property Value
CompanyAddress
Gets or sets the company address for the user. Default [""].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserCompanyAddress })]
public string? CompanyAddress { get; set; }
Property Value
CompanyGroups
Gets or sets the list of organization Group(s) that the user belongs to.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DisplayUserGroups }, IsList = true)]
public virtual IList<Group>? CompanyGroups { get; set; }
Property Value
CompanyName
Gets or sets the name of the company for the user. Default [""].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserCompanyName })]
public string? CompanyName { get; set; }
Property Value
CountryCode
Gets or sets the user two symbols country ISO code (https://www.iso.org/iso-3166-country-codes.html). Maximum length [2] Default [""]
public string? CountryCode { get; set; }
Property Value
DateFormat
Gets or sets the format dates will be displayed to this user. Default ["MM/dd/yy HH:mm:ss"].
public string? DateFormat { get; set; }
Property Value
DefaultGoogleMapStyle
Gets or sets the default GoogleMapStyle tiles when using Google maps. Default [Roadmap].
public GoogleMapStyle? DefaultGoogleMapStyle { get; set; }
Property Value
DefaultHereMapStyle
Gets or sets the default HereMapStyle tiles when using Here Maps. Default [Roadmap].
public HereMapStyle? DefaultHereMapStyle { get; set; }
Property Value
DefaultMapEngine
Gets or sets the default map engine to use for this user. System map engines are:
Default ["MapBox"].
public string? DefaultMapEngine { get; set; }
Property Value
DefaultOpenStreetMapStyle
Gets or sets the default OpenStreetMapStyle tiles when using Open Street Maps. Default [MapBox].
public OpenStreetMapStyle? DefaultOpenStreetMapStyle { get; set; }
Property Value
DefaultPage
Gets or sets the default start page to view when login is complete. Maps to the hash portion of the web site URL (https://url/enpoint/[#page]). Default [helpGuide].
public string? DefaultPage { get; set; }
Property Value
Designation
Gets or sets the designation or title of the employee. Maximum length [50] Default [""].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserDesignation })]
public string? Designation { get; set; }
Property Value
DisplayCurrency
Gets or sets the user's preferred currency for display in the UI.
public Currency? DisplayCurrency { get; set; }
Property Value
DisplayMeasurementProfile
Gets or sets the DisplayMeasurementProfile.
[Obsolete("DisplayMeasurementProfile is handled outside of the User class and not a property of it.")]
public DisplayMeasurementProfile? DisplayMeasurementProfile { get; set; }
Property Value
DriveGuideVersion
Gets or sets the driver's last viewed guide version. Default [0].
public int? DriveGuideVersion { get; set; }
Property Value
ElectricEnergyEconomyUnit
Gets or sets the user's preferred ElectricEnergyEconomyUnit for viewing fuel economy. Default [LitersEPer100Km].
public ElectricEnergyEconomyUnit? ElectricEnergyEconomyUnit { get; set; }
Property Value
EmployeeNo
Gets or sets the employee number or external identifier. Maximum length [50] Default [""].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserEmployeeNo })]
public string? EmployeeNo { get; set; }
Property Value
FeaturePreview
Gets or sets a comma-separated string value indicating which features user enabled to preview. Default [""].
public string? FeaturePreview { get; set; }
Property Value
FirstDayOfWeek
Gets or sets the user's preferred day to represent the start of the week. Default ["Sunday"].
public DayOfWeek? FirstDayOfWeek { get; set; }
Property Value
FirstName
Gets or sets the first name of the user. Maximum length [255].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserFirstName })]
public string? FirstName { get; set; }
Property Value
FuelEconomyUnit
Gets or sets the user's preferred FuelEconomyUnit for viewing fuel economy. Default [LitersPer100Km].
public FuelEconomyUnit? FuelEconomyUnit { get; set; }
Property Value
Groups
Gets or sets the aggregated list of all user groups.
public IList<Group>? Groups { get; set; }
Property Value
HosRuleSet
Gets or sets the HosRuleSet the user follows. Default [None].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserHosRuleSet })]
public HosRuleSet? HosRuleSet { get; set; }
Property Value
IAMMetadata
Gets or sets the user's metadata in IAM.
public IAMMetadata? IAMMetadata { get; set; }
Property Value
Id
Gets or sets the unique identifier for the User. See Id.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserId })]
public override Id? Id { get; set; }
Property Value
IsAdverseDrivingEnabled
Gets or sets a value indicating whether the user is allowed to Adverse Driving conditions exempt. Default [true].
public bool? IsAdverseDrivingEnabled { get; set; }
Property Value
IsAutoAdded
Gets or sets a value indicating whether the user was automatically added to the database
public bool? IsAutoAdded { get; set; }
Property Value
IsDriver
Gets or sets the isDriver toggle, if [true] the user is a driver, otherwise [false]. Default [false].
public bool? IsDriver { get; set; }
Property Value
IsEULAAccepted
Gets a value indicating whether the old EULA has been accepted by the end user. Default [false].
public bool? IsEULAAccepted { get; }
Property Value
IsEmailReportEnabled
Gets or sets the isEmailReportEnabled toggle, if [true] the user will receive the emailed report, otherwise [false]. Default [true].
public bool? IsEmailReportEnabled { get; set; }
Property Value
IsExemptHOSEnabled
Gets or sets a value indicating whether the user is allowed to HOS personal conveyance. Default [false].
public bool? IsExemptHOSEnabled { get; set; }
Property Value
IsLabsEnabled
Gets a value indicating whether labs are enabled for this user. When set to true this will enable experimental features that are still in the process of being developed. Default [false].
public bool? IsLabsEnabled { get; }
Property Value
IsMetric
Gets or sets whether the current regional settings is in metric units of measurement (or US/Imperial). Default [true].
public bool? IsMetric { get; set; }
Property Value
IsNewsEnabled
Gets or sets a value that indicates whether news notifications are enabled for this user. Default [true].
public bool? IsNewsEnabled { get; set; }
Property Value
IsPersonalConveyanceEnabled
Gets or sets a value indicating whether the user is allowed to HOS personal conveyance. Default [false].
public bool? IsPersonalConveyanceEnabled { get; set; }
Property Value
IsYardMoveEnabled
Gets or sets a value indicating whether the user is allowed to HOS yard move. Default [false].
public bool? IsYardMoveEnabled { get; set; }
Property Value
IssuerCertificate
Gets or sets the issuer Certificate for the user. Will only be populated for users not using basic authentication.
public Certificate? IssuerCertificate { get; set; }
Property Value
JobPriorities
Gets or sets the list of selected job priorities. Default [empty].
public string[]? JobPriorities { get; set; }
Property Value
- string[]
JobPriorities
Language
Gets or sets the user's culture identifier as a predefined CultureInfo name, Name of an existing System.Globalization.CultureInfo, or Windows-only culture name. Default: ["en"] for English.
public string? Language { get; set; }
Property Value
LastAccessDate
Gets or sets the user's last access date of the system.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserLastAccessDate })]
public DateTime? LastAccessDate { get; set; }
Property Value
Remarks
This value updates once per day, and will not be updated on consecutive logins in the same day.
LastName
Gets or sets the last name of the user. Maximum length [255].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserLastName })]
public string? LastName { get; set; }
Property Value
MapViews
Gets or sets the list of the of the available MapViews from the live map. Default [continent of the user's selected Timezone].
public List<MapView>? MapViews { get; set; }
Property Value
MaxPCDistancePerDay
Gets or sets a value indicating the maximum personal conveyance distance per day in meters. Default [0].
public double? MaxPCDistancePerDay { get; set; }
Property Value
MediaFiles
Gets or sets the list of MediaFile(s) photos of this user. Currently, a user can only be associated with at most one photo.
public virtual IList<MediaFile>? MediaFiles { get; set; }
Property Value
Name
Gets or sets the user's email address / login name. Maximum length [255].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserName })]
public override string? Name { get; set; }
Property Value
NullifyAccessGroupFilter
Gets or sets a value to nullify AccessGroupFilter.
public bool? NullifyAccessGroupFilter { get; set; }
Property Value
Password
Gets or sets the user's password.
public string? Password { get; set; }
Property Value
PhoneNumber
Gets or sets the user phone number with space separated country phone code. Example +1 5555555555. Maximum length [20] Default [""]
public string? PhoneNumber { get; set; }
Property Value
PhoneNumberExtension
Gets or sets the user phone number without formatting. Maximum length [5] Default [""]
public string? PhoneNumberExtension { get; set; }
Property Value
PrivateUserGroups
Gets or sets the private Group(s) that the user belongs to.
public virtual IList<Group>? PrivateUserGroups { get; set; }
Property Value
ReportGroups
Gets or sets the report Group(s) for reporting that this user belongs to. The selected reporting groups will allow the user to sort entities that are children of the selected groups. It will not allow them to see entities that are outside of their data access. Default [empty].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DisplayUserReportGroups }, IsList = true)]
public virtual IList<Group>? ReportGroups { get; set; }
Property Value
SecurityGroups
Gets or sets the security Group(s) this user belongs to; which define the user's access.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DisplayUserSecurityLevel }, IsList = true)]
public virtual IList<Group>? SecurityGroups { get; set; }
Property Value
ShowClickOnceWarning
Gets or sets a flag indicating whether to show ClickOnce support warning as the default page. (legacy) Default [false].
public bool? ShowClickOnceWarning { get; set; }
Property Value
TimeZoneId
Gets or sets the IANA Timezone Id of the user. All data will be displayed in this Timezone. Default ["America/New_York"].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserTimeZone })]
public string? TimeZoneId { get; set; }
Property Value
Remarks
Retrieve a list of valid timezone Id's by querying "GetTimeZones".
UserAuthenticationType
Gets or sets the UserAuthenticationType. This value indicates the type of a user's account. "BasicAuthentication" indicates a basic user. "MyAdmin" indicates a user with MyAdmin credentials. "MyAdmin" users are not visible to "BasicAuthentication" users. Default [Basic].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UserAuthenticationType })]
public UserAuthenticationType? UserAuthenticationType { get; set; }
Property Value
WifiEULA
Gets or sets a value indicating the user accepted Wifi specific EULA revision number. Default [0].
public int? WifiEULA { get; set; }
Property Value
WindowsAuthenticationUserId
Gets or sets the windows authentication user Id. This property is so we don't return both User Id and Name to the client side when they have the same value. User Id and Name only differ for WindowsAuthentication users.
[Obsolete("Windows-based authentication is not supported.", false)]
public string? WindowsAuthenticationUserId { get; set; }
Property Value
ZoneDisplayMode
Gets or sets the default ZoneDisplayMode used on the map. Default [Default].
public ZoneDisplayMode? ZoneDisplayMode { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.
CreateBasicUser(Id?, long?, string?, string?, string?, string?, string?, string?, string?, DateTime?, DateTime?, IList<Group>?, IList<Group>?, IList<Group>?, ClientSettings?)
Creates a new instance of the User with Basic authentication.
public static User CreateBasicUser(Id? id, long? version, string? login, string? firstName, string? lastName, string? password, string? comment, string? designation, string? employeeNo, DateTime? activeFrom, DateTime? activeTo, IList<Group>? organizationNodes, IList<Group>? reportNodes, IList<Group>? securityNodes, ClientSettings? clientSettings)
Parameters
id
IdThe Id.
version
long?The version.
login
stringThe login (user email).
firstName
stringThe first name of the user.
lastName
stringThe last name of the user.
password
stringThe password.
comment
stringThe comment.
designation
stringThe designation.
employeeNo
stringThe employeeNo.
activeFrom
DateTime?The DateTime from when the User is valid.
activeTo
DateTime?The DateTime to when the User is valid.
organizationNodes
IList<Group>Group collection this user belongs to.
reportNodes
IList<Group>Group collection this user belongs to with only report access.
securityNodes
IList<Group>Group collection that defines what parts of the system the user has access to. The Group(s) are located under the SecurityGroup system Group.
clientSettings
ClientSettingsThe ClientSettings for this User. When adding the newly created User, ClientSettings can be null and the default settings will be applied.
Returns
CreateBasicUser(Id, string, string, string, string, string, string, string, DateTime?, DateTime?, IList<Group>, IList<Group>, IList<Group>, ClientSettings)
Creates a new instance of the User with Basic authentication.
[Obsolete("User CreateBasicUser with version", false)]
public static User CreateBasicUser(Id id, string login, string firstName, string lastName, string password, string comment, string designation, string employeeNo, DateTime? activeFrom, DateTime? activeTo, IList<Group> organizationNodes, IList<Group> reportNodes, IList<Group> securityNodes, ClientSettings clientSettings)
Parameters
id
IdThe Id.
login
stringThe login (user email).
firstName
stringThe first name of the user.
lastName
stringThe last name of the user.
password
stringThe password.
comment
stringThe comment.
designation
stringThe designation.
employeeNo
stringThe employeeNo.
activeFrom
DateTime?The DateTime from when the User is valid.
activeTo
DateTime?The DateTime to when the User is valid.
organizationNodes
IList<Group>Group collection this user belongs to.
reportNodes
IList<Group>Group collection this user belongs to with only report access.
securityNodes
IList<Group>Group collection that defines what parts of the system the user has access to. The Group(s) are located under the SecurityGroup system Group.
clientSettings
ClientSettingsThe ClientSettings for this User. When adding the newly created User, ClientSettings can be null and the default settings will be applied.
Returns
GetAcceptedEULADate()
The date when the EULA was accepted.
public DateTime? GetAcceptedEULADate()
Returns
GetClientSettings()
Gets ClientSettings.
public ClientSettings? GetClientSettings()
Returns
- ClientSettings
Return ClientSettings of the current User.
GetGroups()
The groups that this user belongs to.
public ReadOnlyCollection<Group> GetGroups()
Returns
- ReadOnlyCollection<Group>
The groups.
GetPasswordDateTime()
Gets the date the user set/changed password.
public DateTime? GetPasswordDateTime()
Returns
- DateTime?
The date the user set/changed password.
GetPasswordHash()
Gets the password hash.
public string? GetPasswordHash()
Returns
- string
The password hash.
GetReportGroups()
Get all reporting groups (excludes security groups).
public ReadOnlyCollection<Group> GetReportGroups()
Returns
GetSize()
Gets the size estimate of this instance in bytes.
public long GetSize()
Returns
- long
Returns the size of the entity.
GetUserId()
Gets the user ID string.
public string? GetUserId()
Returns
- string
The user ID string. The userId and Password pair are the User's checkmate credentials. @return. string
IsIdNull(User?)
Checks whether the user or its id is null.
public static bool IsIdNull(User? value)
Parameters
Returns
- bool
Whether the user's id is null
IsPasswordValid(TimeSpan?)
Returns true if the user's password is valid - neither manually expired nor exceeded the system password lifetime.
public bool IsPasswordValid(TimeSpan? lifetime)
Parameters
lifetime
TimeSpan?The lifetime from system settings.
Returns
- bool
True if the user's password is still valid.
PopulateDefaults()
Populate non-required empty (null) properties with default values.
public virtual void PopulateDefaults()
RequiresCertificate()
Check if use has an authenticationType that requires certificate.
public bool RequiresCertificate()
Returns
SetAcceptedEULA(int?)
A value indicating the accepted EULA revision number.
public void SetAcceptedEULA(int? value)
Parameters
SetAcceptedEULADate(DateTime?)
The date when the EULA was accepted.
public void SetAcceptedEULADate(DateTime? value)
Parameters
SetClientSettings(ClientSettings)
Set ClientSettings for the User.
public void SetClientSettings(ClientSettings newSettings)
Parameters
newSettings
ClientSettingsThe new ClientSettings.
SetIsEULAAccepted(int)
a value indicating accepted EULA revision.
public void SetIsEULAAccepted(int value)
Parameters
SetPasswordDateTime(DateTime?)
Sets the date the user set/changed password.
public void SetPasswordDateTime(DateTime? value)
Parameters
value
DateTime?The value.
SetPasswordHash(string?)
Sets the password hash.
public void SetPasswordHash(string? value)
Parameters
value
stringThe value.
SetUserId(string?, bool)
Sets the user ID string. @return The user ID string. The userId and Password pair are the User's checkmate credentials.
public void SetUserId(string? value, bool keepNameAndUserAuthenticationType = false)
Parameters
value
stringThe value.
keepNameAndUserAuthenticationType
boolOnly set userID and do not update other properties.
SetUserName(string?)
Sets the user.Name string.
public void SetUserName(string? value)
Parameters
value
stringThe name value.
SystemFromId(Id?)
Returns a system User from the provided system Id else null if its a not a system user.
public static User? SystemFromId(Id? id)
Parameters
id
IdThe id.
Returns
- User
A user derived from the provided id.