public final class User extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Admin SDK API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
User |
clone() |
Object |
getAddresses()
A list of the user's addresses.
|
Boolean |
getAgreedToTerms()
Output only.
|
List<String> |
getAliases()
Output only.
|
Boolean |
getArchived()
Indicates if user is archived.
|
Boolean |
getChangePasswordAtNextLogin()
Indicates if the user is forced to change their password at next login.
|
DateTime |
getCreationTime()
User's G Suite account creation time.
|
String |
getCustomerId()
Output only.
|
Map<String,Map<String,Object>> |
getCustomSchemas()
Custom fields of the user.
|
DateTime |
getDeletionTime() |
Object |
getEmails()
A list of the user's email addresses.
|
String |
getEtag()
Output only.
|
Object |
getExternalIds()
A list of external IDs for the user, such as an employee or network ID.
|
Object |
getGender()
The user's gender.
|
String |
getHashFunction()
Stores the hash format of the password property.
|
String |
getId()
The unique ID for the user.
|
Object |
getIms()
The user's Instant Messenger (IM) accounts.
|
Boolean |
getIncludeInGlobalAddressList()
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.
|
Boolean |
getIpWhitelisted()
If `true`, the user's IP address is [whitelisted](https://support.google.com/a/answer/60752).
|
Boolean |
getIsAdmin()
Output only.
|
Boolean |
getIsDelegatedAdmin()
Output only.
|
Boolean |
getIsEnforcedIn2Sv()
Output only.
|
Boolean |
getIsEnrolledIn2Sv()
Output only.
|
Boolean |
getIsMailboxSetup()
Output only.
|
Object |
getKeywords()
The user's keywords.
|
String |
getKind()
Output only.
|
Object |
getLanguages()
The user's languages.
|
DateTime |
getLastLoginTime()
User's last login time.
|
Object |
getLocations()
The user's locations.
|
UserName |
getName()
Holds the given and family names of the user, and the read-only `fullName` value.
|
List<String> |
getNonEditableAliases()
Output only.
|
Object |
getNotes()
Notes for the user.
|
Object |
getOrganizations()
A list of organizations the user belongs to.
|
String |
getOrgUnitPath()
The full path of the parent organization associated with the user.
|
String |
getPassword()
User's password
|
Object |
getPhones()
A list of the user's phone numbers.
|
Object |
getPosixAccounts()
A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information
for the user.
|
String |
getPrimaryEmail()
The user's primary email address.
|
String |
getRecoveryEmail()
Recovery email of the user.
|
String |
getRecoveryPhone()
Recovery phone of the user.
|
Object |
getRelations()
A list of the user's relationships to other users.
|
Object |
getSshPublicKeys()
A list of SSH public keys.
|
Boolean |
getSuspended()
Indicates if user is suspended.
|
String |
getSuspensionReason()
Output only.
|
String |
getThumbnailPhotoEtag()
Output only.
|
String |
getThumbnailPhotoUrl()
Output only.
|
Object |
getWebsites()
The user's websites.
|
User |
set(String fieldName,
Object value) |
User |
setAddresses(Object addresses)
A list of the user's addresses.
|
User |
setAgreedToTerms(Boolean agreedToTerms)
Output only.
|
User |
setAliases(List<String> aliases)
Output only.
|
User |
setArchived(Boolean archived)
Indicates if user is archived.
|
User |
setChangePasswordAtNextLogin(Boolean changePasswordAtNextLogin)
Indicates if the user is forced to change their password at next login.
|
User |
setCreationTime(DateTime creationTime)
User's G Suite account creation time.
|
User |
setCustomerId(String customerId)
Output only.
|
User |
setCustomSchemas(Map<String,Map<String,Object>> customSchemas)
Custom fields of the user.
|
User |
setDeletionTime(DateTime deletionTime) |
User |
setEmails(Object emails)
A list of the user's email addresses.
|
User |
setEtag(String etag)
Output only.
|
User |
setExternalIds(Object externalIds)
A list of external IDs for the user, such as an employee or network ID.
|
User |
setGender(Object gender)
The user's gender.
|
User |
setHashFunction(String hashFunction)
Stores the hash format of the password property.
|
User |
setId(String id)
The unique ID for the user.
|
User |
setIms(Object ims)
The user's Instant Messenger (IM) accounts.
|
User |
setIncludeInGlobalAddressList(Boolean 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.
|
User |
setIpWhitelisted(Boolean ipWhitelisted)
If `true`, the user's IP address is [whitelisted](https://support.google.com/a/answer/60752).
|
User |
setIsAdmin(Boolean isAdmin)
Output only.
|
User |
setIsDelegatedAdmin(Boolean isDelegatedAdmin)
Output only.
|
User |
setIsEnforcedIn2Sv(Boolean isEnforcedIn2Sv)
Output only.
|
User |
setIsEnrolledIn2Sv(Boolean isEnrolledIn2Sv)
Output only.
|
User |
setIsMailboxSetup(Boolean isMailboxSetup)
Output only.
|
User |
setKeywords(Object keywords)
The user's keywords.
|
User |
setKind(String kind)
Output only.
|
User |
setLanguages(Object languages)
The user's languages.
|
User |
setLastLoginTime(DateTime lastLoginTime)
User's last login time.
|
User |
setLocations(Object locations)
The user's locations.
|
User |
setName(UserName name)
Holds the given and family names of the user, and the read-only `fullName` value.
|
User |
setNonEditableAliases(List<String> nonEditableAliases)
Output only.
|
User |
setNotes(Object notes)
Notes for the user.
|
User |
setOrganizations(Object organizations)
A list of organizations the user belongs to.
|
User |
setOrgUnitPath(String orgUnitPath)
The full path of the parent organization associated with the user.
|
User |
setPassword(String password)
User's password
|
User |
setPhones(Object phones)
A list of the user's phone numbers.
|
User |
setPosixAccounts(Object posixAccounts)
A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information
for the user.
|
User |
setPrimaryEmail(String primaryEmail)
The user's primary email address.
|
User |
setRecoveryEmail(String recoveryEmail)
Recovery email of the user.
|
User |
setRecoveryPhone(String recoveryPhone)
Recovery phone of the user.
|
User |
setRelations(Object relations)
A list of the user's relationships to other users.
|
User |
setSshPublicKeys(Object sshPublicKeys)
A list of SSH public keys.
|
User |
setSuspended(Boolean suspended)
Indicates if user is suspended.
|
User |
setSuspensionReason(String suspensionReason)
Output only.
|
User |
setThumbnailPhotoEtag(String thumbnailPhotoEtag)
Output only.
|
User |
setThumbnailPhotoUrl(String thumbnailPhotoUrl)
Output only.
|
User |
setWebsites(Object websites)
The user's websites.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Object getAddresses()
null for nonepublic User setAddresses(Object addresses)
addresses - addresses or null for nonepublic Boolean getAgreedToTerms()
null for nonepublic User setAgreedToTerms(Boolean agreedToTerms)
agreedToTerms - agreedToTerms or null for nonepublic List<String> getAliases()
null for nonepublic User setAliases(List<String> aliases)
aliases - aliases or null for nonepublic Boolean getArchived()
null for nonepublic User setArchived(Boolean archived)
archived - archived or null for nonepublic Boolean getChangePasswordAtNextLogin()
null for nonepublic User setChangePasswordAtNextLogin(Boolean changePasswordAtNextLogin)
changePasswordAtNextLogin - changePasswordAtNextLogin or null for nonepublic DateTime getCreationTime()
null for nonepublic User setCreationTime(DateTime creationTime)
creationTime - creationTime or null for nonepublic Map<String,Map<String,Object>> getCustomSchemas()
null for nonepublic User setCustomSchemas(Map<String,Map<String,Object>> customSchemas)
customSchemas - customSchemas or null for nonepublic String getCustomerId()
null for nonepublic User setCustomerId(String customerId)
customerId - customerId or null for nonepublic DateTime getDeletionTime()
null for nonepublic User setDeletionTime(DateTime deletionTime)
deletionTime - deletionTime or null for nonepublic Object getEmails()
null for nonepublic User setEmails(Object emails)
emails - emails or null for nonepublic String getEtag()
null for nonepublic User setEtag(String etag)
etag - etag or null for nonepublic Object getExternalIds()
null for nonepublic User setExternalIds(Object externalIds)
externalIds - externalIds or null for nonepublic Object getGender()
null for nonepublic User setGender(Object gender)
gender - gender or null for nonepublic String getHashFunction()
null for nonepublic User setHashFunction(String hashFunction)
hashFunction - hashFunction or null for nonepublic String getId()
null for nonepublic User setId(String id)
id - id or null for nonepublic Object getIms()
null for nonepublic User setIms(Object ims)
ims - ims or null for nonepublic Boolean getIncludeInGlobalAddressList()
null for nonepublic User setIncludeInGlobalAddressList(Boolean includeInGlobalAddressList)
includeInGlobalAddressList - includeInGlobalAddressList or null for nonepublic Boolean getIpWhitelisted()
null for nonepublic User setIpWhitelisted(Boolean ipWhitelisted)
ipWhitelisted - ipWhitelisted or null for nonepublic Boolean getIsAdmin()
null for nonepublic User setIsAdmin(Boolean isAdmin)
isAdmin - isAdmin or null for nonepublic Boolean getIsDelegatedAdmin()
null for nonepublic User setIsDelegatedAdmin(Boolean isDelegatedAdmin)
isDelegatedAdmin - isDelegatedAdmin or null for nonepublic Boolean getIsEnforcedIn2Sv()
null for nonepublic User setIsEnforcedIn2Sv(Boolean isEnforcedIn2Sv)
isEnforcedIn2Sv - isEnforcedIn2Sv or null for nonepublic Boolean getIsEnrolledIn2Sv()
null for nonepublic User setIsEnrolledIn2Sv(Boolean isEnrolledIn2Sv)
isEnrolledIn2Sv - isEnrolledIn2Sv or null for nonepublic Boolean getIsMailboxSetup()
null for nonepublic User setIsMailboxSetup(Boolean isMailboxSetup)
isMailboxSetup - isMailboxSetup or null for nonepublic Object getKeywords()
null for nonepublic User setKeywords(Object keywords)
keywords - keywords or null for nonepublic String getKind()
null for nonepublic User setKind(String kind)
kind - kind or null for nonepublic Object getLanguages()
null for nonepublic User setLanguages(Object languages)
languages - languages or null for nonepublic DateTime getLastLoginTime()
null for nonepublic User setLastLoginTime(DateTime lastLoginTime)
lastLoginTime - lastLoginTime or null for nonepublic Object getLocations()
null for nonepublic User setLocations(Object locations)
locations - locations or null for nonepublic UserName getName()
null for nonepublic User setName(UserName name)
name - name or null for nonepublic List<String> getNonEditableAliases()
null for nonepublic User setNonEditableAliases(List<String> nonEditableAliases)
nonEditableAliases - nonEditableAliases or null for nonepublic Object getNotes()
null for nonepublic User setNotes(Object notes)
notes - notes or null for nonepublic String getOrgUnitPath()
null for nonepublic User setOrgUnitPath(String orgUnitPath)
orgUnitPath - orgUnitPath or null for nonepublic Object getOrganizations()
null for nonepublic User setOrganizations(Object organizations)
organizations - organizations or null for nonepublic String getPassword()
null for nonepublic User setPassword(String password)
password - password or null for nonepublic Object getPhones()
null for nonepublic User setPhones(Object phones)
phones - phones or null for nonepublic Object getPosixAccounts()
null for nonepublic User setPosixAccounts(Object posixAccounts)
posixAccounts - posixAccounts or null for nonepublic String getPrimaryEmail()
null for nonepublic User setPrimaryEmail(String primaryEmail)
primaryEmail - primaryEmail or null for nonepublic String getRecoveryEmail()
null for nonepublic User setRecoveryEmail(String recoveryEmail)
recoveryEmail - recoveryEmail or null for nonepublic String getRecoveryPhone()
null for nonepublic User setRecoveryPhone(String recoveryPhone)
recoveryPhone - recoveryPhone or null for nonepublic Object getRelations()
null for nonepublic User setRelations(Object relations)
relations - relations or null for nonepublic Object getSshPublicKeys()
null for nonepublic User setSshPublicKeys(Object sshPublicKeys)
sshPublicKeys - sshPublicKeys or null for nonepublic Boolean getSuspended()
null for nonepublic User setSuspended(Boolean suspended)
suspended - suspended or null for nonepublic String getSuspensionReason()
null for nonepublic User setSuspensionReason(String suspensionReason)
suspensionReason - suspensionReason or null for nonepublic String getThumbnailPhotoEtag()
null for nonepublic User setThumbnailPhotoEtag(String thumbnailPhotoEtag)
thumbnailPhotoEtag - thumbnailPhotoEtag or null for nonepublic String getThumbnailPhotoUrl()
null for nonepublic User setThumbnailPhotoUrl(String thumbnailPhotoUrl)
thumbnailPhotoUrl - thumbnailPhotoUrl or null for nonepublic Object getWebsites()
null for nonepublic User setWebsites(Object websites)
websites - websites or null for nonepublic User set(String fieldName, Object value)
set in class GenericJsonpublic User clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.