View Source GoogleApi.Admin.Directory_v1.Model.User (google_api_admin v0.39.0)
The Directory API allows you to create and manage your account's users, user aliases, and user Google profile photos. For more information about common tasks, see the User Accounts Developer's Guide and the User Aliases Developer's Guide.
Attributes
-
ims
(type:any()
, default:nil
) - The list of 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. -
posixAccounts
(type:any()
, default:nil
) - The list of POSIX account information for the user. -
etag
(type:String.t
, default:nil
) - Output only. ETag of the resource. -
orgUnitPath
(type:String.t
, default:nil
) - 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 (/
). -
suspensionReason
(type:String.t
, default:nil
) - 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 thesuspended
property istrue
. -
agreedToTerms
(type:boolean()
, default:nil
) - Output only. This property istrue
if the user has completed an initial login and accepted the Terms of Service agreement. -
customSchemas
(type:%{optional(String.t) => GoogleApi.Admin.Directory_v1.Model.UserCustomProperties.t}
, default:nil
) - Custom fields of the user. The key is aschema_name
and its values are'field_name': 'field_value'
. -
externalIds
(type:any()
, default:nil
) - The list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2KB. -
gender
(type:any()
, default:nil
) - The user's gender. The maximum allowed data size for this field is 1KB. -
recoveryPhone
(type:String.t
, default:nil
) - Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: +16506661212. -
deletionTime
(type:DateTime.t
, default:nil
) - -
keywords
(type:any()
, default:nil
) - The list of the user's keywords. The maximum allowed data size for this field is 1KB. -
isEnrolledIn2Sv
(type:boolean()
, default:nil
) - Output only. Is enrolled in 2-step verification (Read-only) -
includeInGlobalAddressList
(type:boolean()
, default:nil
) - 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. -
addresses
(type:any()
, default:nil
) - The list of the user's addresses. The maximum allowed data size for this field is 10KB. -
kind
(type:String.t
, default:admin#directory#user
) - Output only. The type of the API resource. For Users resources, the value isadmin#directory#user
. -
sshPublicKeys
(type:any()
, default:nil
) - A list of SSH public keys. -
languages
(type:any()
, default:nil
) - The user's languages. The maximum allowed data size for this field is 1KB. -
password
(type:String.t
, default:nil
) - User's password -
thumbnailPhotoEtag
(type:String.t
, default:nil
) - Output only. ETag of the user's photo (Read-only) -
hashFunction
(type:String.t
, default:nil
) - Stores the hash format of thepassword
property. The followinghashFunction
values are allowed:MD5
- Accepts simple hex-encoded values.SHA-1
- Accepts simple hex-encoded values. *crypt
- Compliant with the C crypt library. Supports the DES, MD5 (hash prefix$1$
), SHA-256 (hash prefix$5$
), and SHA-512 (hash prefix$6$
) hash algorithms. If rounds are specified as part of the prefix, they must be 10,000 or fewer. -
name
(type:GoogleApi.Admin.Directory_v1.Model.UserName.t
, default:nil
) - Holds the given and family names of the user, and the read-onlyfullName
value. The maximum number of characters in thegivenName
and in thefamilyName
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. -
suspended
(type:boolean()
, default:nil
) - Indicates if user is suspended. -
lastLoginTime
(type:DateTime.t
, default:nil
) - User's last login time. (Read-only) -
relations
(type:any()
, default:nil
) - The list of the user's relationships to other users. The maximum allowed data size for this field is 2KB. -
recoveryEmail
(type:String.t
, default:nil
) - Recovery email of the user. -
websites
(type:any()
, default:nil
) - The user's websites. The maximum allowed data size for this field is 2KB. -
primaryEmail
(type:String.t
, default:nil
) - The user's primary email address. This property is required in a request to create a user account. TheprimaryEmail
must be unique and cannot be an alias of another user. -
ipWhitelisted
(type:boolean()
, default:nil
) - Iftrue
, the user's IP address is subject to a deprecated IP addressallowlist
configuration. -
creationTime
(type:DateTime.t
, default:nil
) - User's G Suite account creation time. (Read-only) -
customerId
(type:String.t
, default:nil
) - Output only. The customer ID to retrieve all account users. You can use the aliasmy_customer
to represent your account'scustomerId
. As a reseller administrator, you can use the resold customer account'scustomerId
. To get acustomerId
, use the account's primary domain in thedomain
parameter of a users.list request. -
archived
(type:boolean()
, default:nil
) - Indicates if user is archived. -
isDelegatedAdmin
(type:boolean()
, default:nil
) - 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. -
locations
(type:any()
, default:nil
) - The user's locations. The maximum allowed data size for this field is 10KB. -
nonEditableAliases
(type:list(String.t)
, default:nil
) - Output only. The list of the user's non-editable alias email addresses. These are typically outside the account's primary domain or sub-domain. -
emails
(type:any()
, default:nil
) - The list of the user's email addresses. The maximum allowed data size for this field is 10KB. This excludespublicKeyEncryptionCertificates
. -
isAdmin
(type:boolean()
, default:nil
) - Output only. Indicates a user with super admininistrator privileges. TheisAdmin
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. -
aliases
(type:list(String.t)
, default:nil
) - Output only. The list of the user's alias email addresses. -
id
(type:String.t
, default:nil
) - The unique ID for the user. A userid
can be used as a user request URI'suserKey
. -
isEnforcedIn2Sv
(type:boolean()
, default:nil
) - Output only. Is 2-step verification enforced (Read-only) -
thumbnailPhotoUrl
(type:String.t
, default:nil
) - Output only. The URL of the user's profile photo. The URL might be temporary or private. -
phones
(type:any()
, default:nil
) - The list of the user's phone numbers. The maximum allowed data size for this field is 1KB. -
notes
(type:any()
, default:nil
) - Notes for the user. -
changePasswordAtNextLogin
(type:boolean()
, default:nil
) - 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. -
isMailboxSetup
(type:boolean()
, default:nil
) - 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. -
organizations
(type:any()
, default:nil
) - The list of organizations the user belongs to. The maximum allowed data size for this field is 10KB.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Admin.Directory_v1.Model.User{ addresses: any() | nil, agreedToTerms: boolean() | nil, aliases: [String.t()] | nil, archived: boolean() | nil, changePasswordAtNextLogin: boolean() | nil, creationTime: DateTime.t() | nil, customSchemas: %{ optional(String.t()) => GoogleApi.Admin.Directory_v1.Model.UserCustomProperties.t() } | nil, customerId: String.t() | nil, deletionTime: DateTime.t() | nil, emails: any() | nil, etag: String.t() | nil, externalIds: any() | nil, gender: any() | nil, hashFunction: String.t() | nil, id: String.t() | nil, ims: any() | nil, includeInGlobalAddressList: boolean() | nil, ipWhitelisted: boolean() | nil, isAdmin: boolean() | nil, isDelegatedAdmin: boolean() | nil, isEnforcedIn2Sv: boolean() | nil, isEnrolledIn2Sv: boolean() | nil, isMailboxSetup: boolean() | nil, keywords: any() | nil, kind: String.t() | nil, languages: any() | nil, lastLoginTime: DateTime.t() | nil, locations: any() | nil, name: GoogleApi.Admin.Directory_v1.Model.UserName.t() | nil, nonEditableAliases: [String.t()] | nil, notes: any() | nil, orgUnitPath: String.t() | nil, organizations: any() | nil, password: String.t() | nil, phones: any() | nil, posixAccounts: any() | nil, primaryEmail: String.t() | nil, recoveryEmail: String.t() | nil, recoveryPhone: String.t() | nil, relations: any() | nil, sshPublicKeys: any() | nil, suspended: boolean() | nil, suspensionReason: String.t() | nil, thumbnailPhotoEtag: String.t() | nil, thumbnailPhotoUrl: String.t() | nil, websites: any() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.