2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
76 public static string CanonicalizeName(
string name) => name?.ToUpperInvariant() ??
throw new ArgumentNullException(nameof(name));
88 var result = CreateUserName<UserResponse>();
96 ?.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.
UserGroupResponse ToApi(bool showUsers)
Convert the UserGroup to it's API form.
ICollection< OAuthConnection > OAuthConnections
The TestMerges made by the User.
const string TgsSystemUserName
Username used when creating jobs automatically.
static string CanonicalizeName(string name)
Change a UserName.Name into a CanonicalName.
string CanonicalName
The uppercase invariant of UserName.Name.
long? GroupId
The ID of the User's UserGroup.
ICollection< TestMerge > TestMerges
The TestMerges made by the User.
User CreatedBy
See UserResponse.
UserResponse CreateUserResponse(bool recursive)
Generate a UserResponse from this.
string PasswordHash
The hash of the user's password.
DateTimeOffset? LastPasswordUpdate
When PasswordHash was last changed.
UserGroup Group
The UserGroup the User belongs to, if any.
ICollection< User > CreatedUsers
Users created by this User.