Class User
- Assembly
- Google.Apis.Admin.Directory.directory_v1.dll
The Directory API allows you to create and manage your account's users, user aliases, and user Gmail chat profile photos. For more information about common tasks, see the User Accounts Developer's Guide and the User Aliases Developer's Guide.
public class User : IDirectResponseSchema
- Inheritance
-
User
- Implements
-
IDirectResponseSchema
- Inherited Members
Constructors
User()
public User()
Properties
Addresses
A list of the user's addresses. The maximum allowed data size for this field is 10Kb.
public virtual IList<UserAddress> Addresses { get; set; }
Property Value
AgreedToTerms
Output only. This property is true
if the user has completed an initial login and accepted the Terms of
Service agreement.
public virtual bool? AgreedToTerms { get; set; }
Property Value
- bool?
Aliases
Output only. A list of the user's alias email addresses.
public virtual IList<string> Aliases { get; set; }
Property Value
Archived
Indicates if user is archived.
public virtual bool? Archived { get; set; }
Property Value
- bool?
ChangePasswordAtNextLogin
Indicates if the user is forced to change their password at next login. This setting doesn't apply when the user signs in via a third-party identity provider.
public virtual bool? ChangePasswordAtNextLogin { get; set; }
Property Value
- bool?
CreationTime
DateTime representation of CreationTimeRaw.
public virtual DateTime? CreationTime { get; set; }
Property Value
CreationTimeRaw
User's G Suite account creation time. (Read-only)
public virtual string CreationTimeRaw { get; set; }
Property Value
CustomSchemas
Custom fields of the user.
public virtual IDictionary<string, IDictionary<string, object>> CustomSchemas { get; set; }
Property Value
CustomerId
Output only. The customer ID to retrieve all account
users. You can use the alias my_customer
to represent your account's customerId
. As a reseller administrator, you can use the resold customer
account's customerId
. To get a customerId
, use the account's primary domain in the domain
parameter of
a users.list request.
public virtual string CustomerId { get; set; }
Property Value
DeletionTime
DateTime representation of DeletionTimeRaw.
public virtual DateTime? DeletionTime { get; set; }
Property Value
DeletionTimeRaw
public virtual string DeletionTimeRaw { get; set; }
Property Value
ETag
Output only. ETag of the resource.
public virtual string ETag { get; set; }
Property Value
Emails
A list of the user's email addresses. The maximum allowed data size for this field is 10Kb.
public virtual IList<UserEmail> Emails { get; set; }
Property Value
ExternalIds
A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.
public virtual IList<UserExternalId> ExternalIds { get; set; }
Property Value
Gender
The user's gender. The maximum allowed data size for this field is 1Kb.
public virtual object Gender { get; set; }
Property Value
HashFunction
Stores the hash format of the password property. We recommend sending the password
property value as a
base 16 bit hexadecimal-encoded hash value. Set the hashFunction
values as either the
SHA-1, MD5, or
crypt hash format.
public virtual string HashFunction { get; set; }
Property Value
Id
The unique ID for the user. A user id
can be used as a user request URI's userKey
.
public virtual string Id { get; set; }
Property Value
Ims
The user's Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.
public virtual IList<UserIm> Ims { get; set; }
Property Value
IncludeInGlobalAddressList
Indicates if the user's profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain. For more information about excluding user profiles, see the administration help center.
public virtual bool? IncludeInGlobalAddressList { get; set; }
Property Value
- bool?
IpWhitelisted
If true
, the user's IP address is whitelisted.
public virtual bool? IpWhitelisted { get; set; }
Property Value
- bool?
IsAdmin
Output only. Indicates a user with super admininistrator privileges. The isAdmin
property can only be
edited in the Make a user an administrator
operation ( makeAdmin method). If edited in the
user insert or
update methods, the edit is ignored by the API
service.
public virtual bool? IsAdmin { get; set; }
Property Value
- bool?
IsDelegatedAdmin
Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the Admin console.
public virtual bool? IsDelegatedAdmin { get; set; }
Property Value
- bool?
IsEnforcedIn2Sv
Output only. Is 2-step verification enforced (Read-only)
public virtual bool? IsEnforcedIn2Sv { get; set; }
Property Value
- bool?
IsEnrolledIn2Sv
Output only. Is enrolled in 2-step verification (Read-only)
public virtual bool? IsEnrolledIn2Sv { get; set; }
Property Value
- bool?
IsMailboxSetup
Output only. Indicates if the user's Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.
public virtual bool? IsMailboxSetup { get; set; }
Property Value
- bool?
Keywords
The user's keywords. The maximum allowed data size for this field is 1Kb.
public virtual object Keywords { get; set; }
Property Value
Kind
Output only. The type of the API resource. For Users resources, the value is admin#directory#user
.
public virtual string Kind { get; set; }
Property Value
Languages
The user's languages. The maximum allowed data size for this field is 1Kb.
public virtual object Languages { get; set; }
Property Value
LastLoginTime
DateTime representation of LastLoginTimeRaw.
public virtual DateTime? LastLoginTime { get; set; }
Property Value
LastLoginTimeRaw
User's last login time. (Read-only)
public virtual string LastLoginTimeRaw { get; set; }
Property Value
Locations
The user's locations. The maximum allowed data size for this field is 10Kb.
public virtual object Locations { get; set; }
Property Value
Name
Holds the given and family names of the user, and the read-only fullName
value. The maximum number of
characters in the givenName
and in the familyName
values is 60. In addition, name values support
unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes
(/), and periods (.). For more information about character usage rules, see the administration help
center. Maximum allowed data size for this field is 1Kb.
public virtual UserName Name { get; set; }
Property Value
NonEditableAliases
Output only. List of the user's non-editable alias email addresses. These are typically outside the account's primary domain or sub-domain.
public virtual IList<string> NonEditableAliases { get; set; }
Property Value
Notes
Notes for the user.
public virtual object Notes { get; set; }
Property Value
OrgUnitPath
The full path of the parent organization associated with the user. If the parent organization is the
top-level, it is represented as a forward slash (/
).
public virtual string OrgUnitPath { get; set; }
Property Value
Organizations
A list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.
public virtual IList<UserOrganization> Organizations { get; set; }
Property Value
Password
User's password
public virtual string Password { get; set; }
Property Value
Phones
A list of the user's phone numbers. The maximum allowed data size for this field is 1Kb.
public virtual IList<UserPhone> Phones { get; set; }
Property Value
PosixAccounts
A list of POSIX account information for the user.
public virtual object PosixAccounts { get; set; }
Property Value
PrimaryEmail
The user's primary email address. This property is required in a request to create a user account. The
primaryEmail
must be unique and cannot be an alias of another user.
public virtual string PrimaryEmail { get; set; }
Property Value
RecoveryEmail
Recovery email of the user.
public virtual string RecoveryEmail { get; set; }
Property Value
RecoveryPhone
Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: +16506661212.
public virtual string RecoveryPhone { get; set; }
Property Value
Relations
A list of the user's relationships to other users. The maximum allowed data size for this field is 2Kb.
public virtual IList<UserRelation> Relations { get; set; }
Property Value
SshPublicKeys
A list of SSH public keys.
public virtual object SshPublicKeys { get; set; }
Property Value
Suspended
Indicates if user is suspended.
public virtual bool? Suspended { get; set; }
Property Value
- bool?
SuspensionReason
Output only. Has the reason a user account is suspended either by the administrator or by Google at the time
of suspension. The property is returned only if the suspended
property is true
.
public virtual string SuspensionReason { get; set; }
Property Value
ThumbnailPhotoEtag
Output only. ETag of the user's photo (Read-only)
public virtual string ThumbnailPhotoEtag { get; set; }
Property Value
ThumbnailPhotoUrl
Output only. Photo Url of the user (Read-only)
public virtual string ThumbnailPhotoUrl { get; set; }
Property Value
Websites
The user's websites. The maximum allowed data size for this field is 2Kb.
public virtual IList<UserWebsite> Websites { get; set; }