2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
13 public sealed class User : Api.Models.Internal.UserModelBase,
85 public static string CanonicalizeName(
string name) => name?.ToUpperInvariant() ??
throw new ArgumentNullException(nameof(name));
97 var result = CreateUserName<UserResponse>();
105 ?.Select(x => x.ToApi())
bool? Enabled
If the UserModelBase is enabled since users cannot be deleted. System users cannot be disabled.
string? SystemIdentifier
The SID/UID of the UserModelBase on Windows/POSIX respectively.
DateTimeOffset? CreatedAt
When the UserModelBase was created.
Sanity limits to prevent users from overloading.
const int MaximumIndexableStringLength
Length limit for NamedEntity.Names.
Base class for user names.
UserName CreateUserName()
Create a copy of the UserName.
Api.Models.PermissionSet ToApi()
Convert the PermissionSet to it's API form.
Represents a group of Users.
UserGroupResponse ToApi(bool showUsers)
Convert the UserGroup to it's API form.
ICollection< OAuthConnection >? OAuthConnections
The TestMerges made by the User.
User? CreatedBy
See UserResponse.
const string TgsSystemUserName
Username used when creating jobs automatically.
static string CanonicalizeName(string name)
Change a UserName.Name into a CanonicalName.
ICollection< TestMerge >? TestMerges
The TestMerges made by the User.
long? GroupId
The EntityId.Id of the User's Group.
UserResponse CreateUserResponse(bool recursive)
Generate a UserResponse from this.
string? CanonicalName
The uppercase invariant of UserName.Name.
DateTimeOffset? LastPasswordUpdate
When PasswordHash was last changed.
string? PasswordHash
The hash of the user's password.
long? CreatedById
The EntityId.Id of the User's CreatedBy User.
ICollection< User >? CreatedUsers
Users created by this User.
UserGroup? Group
The UserGroup the User belongs to, if any.
@ Required
DMAPI validation must suceed for the deployment to succeed.