Class User

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class User extends DirectoryObject implements com.microsoft.kiota.serialization.Parsable
Represents a Microsoft Entra user account.
  • Constructor Details

    • User

      public User()
      Instantiates a new User and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static User createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a User
    • getAboutMe

      @Nullable public String getAboutMe()
      Gets the aboutMe property value. A freeform text entry field for the user to describe themselves. Returned only on $select.
      Returns:
      a String
    • getAccountEnabled

      @Nullable public Boolean getAccountEnabled()
      Gets the accountEnabled property value. true if the account is enabled; otherwise, false. This property is required when a user is created. Returned only on $select. Supports $filter (eq, ne, not, and in).
      Returns:
      a Boolean
    • getActivities

      @Nullable public List<UserActivity> getActivities()
      Gets the activities property value. The user's activities across devices. Read-only. Nullable.
      Returns:
      a List<UserActivity>
    • getAgeGroup

      @Nullable public String getAgeGroup()
      Gets the ageGroup property value. Sets the age group of the user. Allowed values: null, Minor, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).
      Returns:
      a String
    • getAgreementAcceptances

      @Nullable public List<AgreementAcceptance> getAgreementAcceptances()
      Gets the agreementAcceptances property value. The user's terms of use acceptance statuses. Read-only. Nullable.
      Returns:
      a List<AgreementAcceptance>
    • getAppRoleAssignments

      @Nullable public List<AppRoleAssignment> getAppRoleAssignments()
      Gets the appRoleAssignments property value. Represents the app roles a user is granted for an application. Supports $expand.
      Returns:
      a List<AppRoleAssignment>
    • getAssignedLicenses

      @Nullable public List<AssignedLicense> getAssignedLicenses()
      Gets the assignedLicenses property value. The licenses that are assigned to the user, including inherited (group-based) licenses. This property doesn't differentiate between directly assigned and inherited licenses. Use the licenseAssignmentStates property to identify the directly assigned and inherited licenses. Not nullable. Returned only on $select. Supports $filter (eq, not, /$count eq 0, /$count ne 0).
      Returns:
      a List<AssignedLicense>
    • getAssignedPlans

      @Nullable public List<AssignedPlan> getAssignedPlans()
      Gets the assignedPlans property value. The plans that are assigned to the user. Read-only. Not nullable. Returned only on $select. Supports $filter (eq and not).
      Returns:
      a List<AssignedPlan>
    • getAuthentication

      @Nullable public Authentication getAuthentication()
      Gets the authentication property value. The authentication methods that are supported for the user.
      Returns:
      a Authentication
    • getAuthorizationInfo

      @Nullable public AuthorizationInfo getAuthorizationInfo()
      Gets the authorizationInfo property value. The authorizationInfo property
      Returns:
      a AuthorizationInfo
    • getBirthday

      @Nullable public OffsetDateTime getBirthday()
      Gets the birthday property value. The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. Returned only on $select.
      Returns:
      a OffsetDateTime
    • getBusinessPhones

      @Nullable public List<String> getBusinessPhones()
      Gets the businessPhones property value. The telephone numbers for the user. NOTE: Although it's a string collection, only one number can be set for this property. Read-only for users synced from the on-premises directory. Returned by default. Supports $filter (eq, not, ge, le, startsWith).
      Returns:
      a List<String>
    • getCalendar

      @Nullable public Calendar getCalendar()
      Gets the calendar property value. The user's primary calendar. Read-only.
      Returns:
      a Calendar
    • getCalendarGroups

      @Nullable public List<CalendarGroup> getCalendarGroups()
      Gets the calendarGroups property value. The user's calendar groups. Read-only. Nullable.
      Returns:
      a List<CalendarGroup>
    • getCalendars

      @Nullable public List<Calendar> getCalendars()
      Gets the calendars property value. The user's calendars. Read-only. Nullable.
      Returns:
      a List<Calendar>
    • getCalendarView

      @Nullable public List<Event> getCalendarView()
      Gets the calendarView property value. The calendar view for the calendar. Read-only. Nullable.
      Returns:
      a List<Event>
    • getChats

      @Nullable public List<Chat> getChats()
      Gets the chats property value. The chats property
      Returns:
      a List<Chat>
    • getCity

      @Nullable public String getCity()
      Gets the city property value. The city where the user is located. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getCloudClipboard

      @Nullable public CloudClipboardRoot getCloudClipboard()
      Gets the cloudClipboard property value. The cloudClipboard property
      Returns:
      a CloudClipboardRoot
    • getCompanyName

      @Nullable public String getCompanyName()
      Gets the companyName property value. The name of the company that the user is associated with. This property can be useful for describing the company that a guest comes from. The maximum length is 64 characters.Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getConsentProvidedForMinor

      @Nullable public String getConsentProvidedForMinor()
      Gets the consentProvidedForMinor property value. Sets whether consent was obtained for minors. Allowed values: null, Granted, Denied, and NotRequired. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).
      Returns:
      a String
    • getContactFolders

      @Nullable public List<ContactFolder> getContactFolders()
      Gets the contactFolders property value. The user's contacts folders. Read-only. Nullable.
      Returns:
      a List<ContactFolder>
    • getContacts

      @Nullable public List<Contact> getContacts()
      Gets the contacts property value. The user's contacts. Read-only. Nullable.
      Returns:
      a List<Contact>
    • getCountry

      @Nullable public String getCountry()
      Gets the country property value. The country or region where the user is located; for example, US or UK. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and UTC. The value can't be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Microsoft Entra ID. Property is null for some users created before June 2018 and on-premises users that were synced to Microsoft Entra ID before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).
      Returns:
      a OffsetDateTime
    • getCreatedObjects

      @Nullable public List<DirectoryObject> getCreatedObjects()
      Gets the createdObjects property value. Directory objects that the user created. Read-only. Nullable.
      Returns:
      a List<DirectoryObject>
    • getCreationType

      @Nullable public String getCreationType()
      Gets the creationType property value. Indicates whether the user account was created through one of the following methods: As a regular school or work account (null). As an external account (Invitation). As a local account for an Azure Active Directory B2C tenant (LocalAccount). Through self-service sign-up by an internal user using email verification (EmailVerified). Through self-service sign-up by a guest signing up through a link that is part of a user flow (SelfServiceSignUp). Read-only.Returned only on $select. Supports $filter (eq, ne, not, in).
      Returns:
      a String
    • getCustomSecurityAttributes

      @Nullable public CustomSecurityAttributeValue getCustomSecurityAttributes()
      Gets the customSecurityAttributes property value. An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). The filter value is case-sensitive. To read this property, the calling app must be assigned the CustomSecAttributeAssignment.Read.All permission. To write this property, the calling app must be assigned the CustomSecAttributeAssignment.ReadWrite.All permissions. To read or write this property in delegated scenarios, the admin must be assigned the Attribute Assignment Administrator role.
      Returns:
      a CustomSecurityAttributeValue
    • getDepartment

      @Nullable public String getDepartment()
      Gets the department property value. The name of the department in which the user works. Maximum length is 64 characters. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, and eq on null values).
      Returns:
      a String
    • getDeviceEnrollmentLimit

      @Nullable public Integer getDeviceEnrollmentLimit()
      Gets the deviceEnrollmentLimit property value. The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.
      Returns:
      a Integer
    • getDeviceManagementTroubleshootingEvents

      @Nullable public List<DeviceManagementTroubleshootingEvent> getDeviceManagementTroubleshootingEvents()
      Gets the deviceManagementTroubleshootingEvents property value. The list of troubleshooting events for this user.
      Returns:
      a List<DeviceManagementTroubleshootingEvent>
    • getDirectReports

      @Nullable public List<DirectoryObject> getDirectReports()
      Gets the directReports property value. The users and contacts that report to the user. (The users and contacts that have their manager property set to this user.) Read-only. Nullable. Supports $expand.
      Returns:
      a List<DirectoryObject>
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and family name. This property is required when a user is created and it can't be cleared during updates. Maximum length is 256 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values), $orderby, and $search.
      Returns:
      a String
    • getDrive

      @Nullable public Drive getDrive()
      Gets the drive property value. The user's OneDrive. Read-only.
      Returns:
      a Drive
    • getDrives

      @Nullable public List<Drive> getDrives()
      Gets the drives property value. A collection of drives available for this user. Read-only.
      Returns:
      a List<Drive>
    • getEmployeeExperience

      @Nullable public EmployeeExperienceUser getEmployeeExperience()
      Gets the employeeExperience property value. The employeeExperience property
      Returns:
      a EmployeeExperienceUser
    • getEmployeeHireDate

      @Nullable public OffsetDateTime getEmployeeHireDate()
      Gets the employeeHireDate property value. The date and time when the user was hired or will start work in a future hire. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).
      Returns:
      a OffsetDateTime
    • getEmployeeId

      @Nullable public String getEmployeeId()
      Gets the employeeId property value. The employee identifier assigned to the user by the organization. The maximum length is 16 characters. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getEmployeeLeaveDateTime

      @Nullable public OffsetDateTime getEmployeeLeaveDateTime()
      Gets the employeeLeaveDateTime property value. The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs at least one of the following Microsoft Entra roles: Lifecycle Workflows Administrator (least privilege), Global Reader. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user.
      Returns:
      a OffsetDateTime
    • getEmployeeOrgData

      @Nullable public EmployeeOrgData getEmployeeOrgData()
      Gets the employeeOrgData property value. Represents organization data (for example, division and costCenter) associated with a user. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).
      Returns:
      a EmployeeOrgData
    • getEmployeeType

      @Nullable public String getEmployeeType()
      Gets the employeeType property value. Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith).
      Returns:
      a String
    • getEvents

      @Nullable public List<Event> getEvents()
      Gets the events property value. The user's events. Default is to show Events under the Default Calendar. Read-only. Nullable.
      Returns:
      a List<Event>
    • getExtensions

      @Nullable public List<Extension> getExtensions()
      Gets the extensions property value. The collection of open extensions defined for the user. Read-only. Supports $expand. Nullable.
      Returns:
      a List<Extension>
    • getExternalUserState

      @Nullable public String getExternalUserState()
      Gets the externalUserState property value. For a guest invited to the tenant using the invitation API, this property represents the invited user's invitation status. For invited users, the state can be PendingAcceptance or Accepted, or null for all other users. Returned only on $select. Supports $filter (eq, ne, not , in).
      Returns:
      a String
    • getExternalUserStateChangeDateTime

      @Nullable public OffsetDateTime getExternalUserStateChangeDateTime()
      Gets the externalUserStateChangeDateTime property value. Shows the timestamp for the latest change to the externalUserState property. Returned only on $select. Supports $filter (eq, ne, not , in).
      Returns:
      a OffsetDateTime
    • getFaxNumber

      @Nullable public String getFaxNumber()
      Gets the faxNumber property value. The fax number of the user. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class DirectoryObject
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFollowedSites

      @Nullable public List<Site> getFollowedSites()
      Gets the followedSites property value. The followedSites property
      Returns:
      a List<Site>
    • getGivenName

      @Nullable public String getGivenName()
      Gets the givenName property value. The given name (first name) of the user. Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getHireDate

      @Nullable public OffsetDateTime getHireDate()
      Gets the hireDate property value. The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. Returned only on $select. Note: This property is specific to SharePoint in Microsoft 365. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs.
      Returns:
      a OffsetDateTime
    • getIdentities

      @Nullable public List<ObjectIdentity> getIdentities()
      Gets the identities property value. Represents the identities that can be used to sign in to this user account. Microsoft (also known as a local account), organizations, or social identity providers such as Facebook, Google, and Microsoft can provide identity and tie it to a user account. It might contain multiple items with the same signInType value. Returned only on $select. Supports $filter (eq) with limitations.
      Returns:
      a List<ObjectIdentity>
    • getImAddresses

      @Nullable public List<String> getImAddresses()
      Gets the imAddresses property value. The instant message voice-over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only. Returned only on $select. Supports $filter (eq, not, ge, le, startsWith).
      Returns:
      a List<String>
    • getInferenceClassification

      @Nullable public InferenceClassification getInferenceClassification()
      Gets the inferenceClassification property value. Relevance classification of the user's messages based on explicit designations that override inferred relevance or importance.
      Returns:
      a InferenceClassification
    • getInsights

      @Nullable public ItemInsights getInsights()
      Gets the insights property value. Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable.
      Returns:
      a ItemInsights
    • getInterests

      @Nullable public List<String> getInterests()
      Gets the interests property value. A list for the user to describe their interests. Returned only on $select.
      Returns:
      a List<String>
    • getIsManagementRestricted

      @Nullable public Boolean getIsManagementRestricted()
      Gets the isManagementRestricted property value. The isManagementRestricted property
      Returns:
      a Boolean
    • getIsResourceAccount

      @Nullable public Boolean getIsResourceAccount()
      Gets the isResourceAccount property value. Don't use reserved for future use.
      Returns:
      a Boolean
    • getJobTitle

      @Nullable public String getJobTitle()
      Gets the jobTitle property value. The user's job title. Maximum length is 128 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getJoinedTeams

      @Nullable public List<Team> getJoinedTeams()
      Gets the joinedTeams property value. The joinedTeams property
      Returns:
      a List<Team>
    • getLastPasswordChangeDateTime

      @Nullable public OffsetDateTime getLastPasswordChangeDateTime()
      Gets the lastPasswordChangeDateTime property value. The time when this Microsoft Entra user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select.
      Returns:
      a OffsetDateTime
    • getLegalAgeGroupClassification

      @Nullable public String getLegalAgeGroupClassification()
      Gets the legalAgeGroupClassification property value. Used by enterprise applications to determine the legal age group of the user. This property is read-only and calculated based on ageGroup and consentProvidedForMinor properties. Allowed values: null, Undefined, MinorWithOutParentalConsent, MinorWithParentalConsent, MinorNoParentalConsentRequired, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select.
      Returns:
      a String
    • getLicenseAssignmentStates

      @Nullable public List<LicenseAssignmentState> getLicenseAssignmentStates()
      Gets the licenseAssignmentStates property value. State of license assignments for this user. Also indicates licenses that are directly assigned or the user inherited through group memberships. Read-only. Returned only on $select.
      Returns:
      a List<LicenseAssignmentState>
    • getLicenseDetails

      @Nullable public List<LicenseDetails> getLicenseDetails()
      Gets the licenseDetails property value. A collection of this user's license details. Read-only.
      Returns:
      a List<LicenseDetails>
    • getMail

      @Nullable public String getMail()
      Gets the mail property value. The SMTP address for the user, for example, jeff@contoso.com. Changes to this property update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, endsWith, and eq on null values).
      Returns:
      a String
    • getMailboxSettings

      @Nullable public MailboxSettings getMailboxSettings()
      Gets the mailboxSettings property value. Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select.
      Returns:
      a MailboxSettings
    • getMailFolders

      @Nullable public List<MailFolder> getMailFolders()
      Gets the mailFolders property value. The user's mail folders. Read-only. Nullable.
      Returns:
      a List<MailFolder>
    • getMailNickname

      @Nullable public String getMailNickname()
      Gets the mailNickname property value. The mail alias for the user. This property must be specified when a user is created. Maximum length is 64 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getManagedAppRegistrations

      @Nullable public List<ManagedAppRegistration> getManagedAppRegistrations()
      Gets the managedAppRegistrations property value. Zero or more managed app registrations that belong to the user.
      Returns:
      a List<ManagedAppRegistration>
    • getManagedDevices

      @Nullable public List<ManagedDevice> getManagedDevices()
      Gets the managedDevices property value. The managed devices associated with the user.
      Returns:
      a List<ManagedDevice>
    • getManager

      @Nullable public DirectoryObject getManager()
      Gets the manager property value. The user or contact that is this user's manager. Read-only. Supports $expand.
      Returns:
      a DirectoryObject
    • getMemberOf

      @Nullable public List<DirectoryObject> getMemberOf()
      Gets the memberOf property value. The groups and directory roles that the user is a member of. Read-only. Nullable. Supports $expand.
      Returns:
      a List<DirectoryObject>
    • getMessages

      @Nullable public List<Message> getMessages()
      Gets the messages property value. The messages in a mailbox or folder. Read-only. Nullable.
      Returns:
      a List<Message>
    • getMobilePhone

      @Nullable public String getMobilePhone()
      Gets the mobilePhone property value. The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory. Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values) and $search.
      Returns:
      a String
    • getMySite

      @Nullable public String getMySite()
      Gets the mySite property value. The URL for the user's site. Returned only on $select.
      Returns:
      a String
    • getOauth2PermissionGrants

      @Nullable public List<OAuth2PermissionGrant> getOauth2PermissionGrants()
      Gets the oauth2PermissionGrants property value. The oauth2PermissionGrants property
      Returns:
      a List<OAuth2PermissionGrant>
    • getOfficeLocation

      @Nullable public String getOfficeLocation()
      Gets the officeLocation property value. The office location in the user's place of business. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getOnenote

      @Nullable public Onenote getOnenote()
      Gets the onenote property value. The onenote property
      Returns:
      a Onenote
    • getOnlineMeetings

      @Nullable public List<OnlineMeeting> getOnlineMeetings()
      Gets the onlineMeetings property value. Information about a meeting, including the URL used to join a meeting, the attendees list, and the description.
      Returns:
      a List<OnlineMeeting>
    • getOnPremisesDistinguishedName

      @Nullable public String getOnPremisesDistinguishedName()
      Gets the onPremisesDistinguishedName property value. Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select.
      Returns:
      a String
    • getOnPremisesDomainName

      @Nullable public String getOnPremisesDomainName()
      Gets the onPremisesDomainName property value. Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select.
      Returns:
      a String
    • getOnPremisesExtensionAttributes

      @Nullable public OnPremisesExtensionAttributes getOnPremisesExtensionAttributes()
      Gets the onPremisesExtensionAttributes property value. Contains extensionAttributes1-15 for the user. These extension attributes are also known as Exchange custom attributes 1-15. Each attribute can store up to 1024 characters. For an onPremisesSyncEnabled user, the source of authority for this set of properties is the on-premises and is read-only. For a cloud-only user (where onPremisesSyncEnabled is false), these properties can be set during the creation or update of a user object. For a cloud-only user previously synced from on-premises Active Directory, these properties are read-only in Microsoft Graph but can be fully managed through the Exchange Admin Center or the Exchange Online V2 module in PowerShell. Returned only on $select. Supports $filter (eq, ne, not, in).
      Returns:
      a OnPremisesExtensionAttributes
    • getOnPremisesImmutableId

      @Nullable public String getOnPremisesImmutableId()
      Gets the onPremisesImmutableId property value. This property is used to associate an on-premises Active Directory user account to their Microsoft Entra user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).
      Returns:
      a String
    • getOnPremisesLastSyncDateTime

      @Nullable public OffsetDateTime getOnPremisesLastSyncDateTime()
      Gets the onPremisesLastSyncDateTime property value. Indicates the last time at which the object was synced with the on-premises directory; for example: 2013-02-16T03:04:54Z. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).
      Returns:
      a OffsetDateTime
    • getOnPremisesProvisioningErrors

      @Nullable public List<OnPremisesProvisioningError> getOnPremisesProvisioningErrors()
      Gets the onPremisesProvisioningErrors property value. Errors when using Microsoft synchronization product during provisioning. Returned only on $select. Supports $filter (eq, not, ge, le).
      Returns:
      a List<OnPremisesProvisioningError>
    • getOnPremisesSamAccountName

      @Nullable public String getOnPremisesSamAccountName()
      Gets the onPremisesSamAccountName property value. Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).
      Returns:
      a String
    • getOnPremisesSecurityIdentifier

      @Nullable public String getOnPremisesSecurityIdentifier()
      Gets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq including on null values).
      Returns:
      a String
    • getOnPremisesSyncEnabled

      @Nullable public Boolean getOnPremisesSyncEnabled()
      Gets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Microsoft Entra ID. Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values).
      Returns:
      a Boolean
    • getOnPremisesUserPrincipalName

      @Nullable public String getOnPremisesUserPrincipalName()
      Gets the onPremisesUserPrincipalName property value. Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).
      Returns:
      a String
    • getOtherMails

      @Nullable public List<String> getOtherMails()
      Gets the otherMails property value. A list of other email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com']. Can store up to 250 values, each with a limit of 250 characters. NOTE: This property can't contain accent characters. Returned only on $select. Supports $filter (eq, not, ge, le, in, startsWith, endsWith, /$count eq 0, /$count ne 0).
      Returns:
      a List<String>
    • getOutlook

      @Nullable public OutlookUser getOutlook()
      Gets the outlook property value. The outlook property
      Returns:
      a OutlookUser
    • getOwnedDevices

      @Nullable public List<DirectoryObject> getOwnedDevices()
      Gets the ownedDevices property value. Devices the user owns. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).
      Returns:
      a List<DirectoryObject>
    • getOwnedObjects

      @Nullable public List<DirectoryObject> getOwnedObjects()
      Gets the ownedObjects property value. Directory objects the user owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).
      Returns:
      a List<DirectoryObject>
    • getPasswordPolicies

      @Nullable public String getPasswordPolicies()
      Gets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two might be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Microsoft Entra password policies. Supports $filter (ne, not, and eq on null values).
      Returns:
      a String
    • getPasswordProfile

      @Nullable public PasswordProfile getPasswordProfile()
      Gets the passwordProfile property value. Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). To update this property: User-PasswordProfile.ReadWrite.All is the least privileged permission to update this property. In delegated scenarios, the User Administrator Microsoft Entra role is the least privileged admin role supported to update this property for nonadmin users. Privileged Authentication Administrator is the least privileged role that's allowed to update this property for all administrators in the tenant. In general, the signed-in user must have a higher privileged administrator role as indicated in Who can reset passwords. In app-only scenarios, the calling app must be assigned a supported permission and at least the User Administrator Microsoft Entra role.
      Returns:
      a PasswordProfile
    • getPastProjects

      @Nullable public List<String> getPastProjects()
      Gets the pastProjects property value. A list for the user to enumerate their past projects. Returned only on $select.
      Returns:
      a List<String>
    • getPeople

      @Nullable public List<Person> getPeople()
      Gets the people property value. People that are relevant to the user. Read-only. Nullable.
      Returns:
      a List<Person>
    • getPermissionGrants

      @Nullable public List<ResourceSpecificPermissionGrant> getPermissionGrants()
      Gets the permissionGrants property value. List all resource-specific permission grants of a user.
      Returns:
      a List<ResourceSpecificPermissionGrant>
    • getPhoto

      @Nullable public ProfilePhoto getPhoto()
      Gets the photo property value. The user's profile photo. Read-only.
      Returns:
      a ProfilePhoto
    • getPhotos

      @Nullable public List<ProfilePhoto> getPhotos()
      Gets the photos property value. The collection of the user's profile photos in different sizes. Read-only.
      Returns:
      a List<ProfilePhoto>
    • getPlanner

      @Nullable public PlannerUser getPlanner()
      Gets the planner property value. Entry-point to the Planner resource that might exist for a user. Read-only.
      Returns:
      a PlannerUser
    • getPostalCode

      @Nullable public String getPostalCode()
      Gets the postalCode property value. The postal code for the user's postal address. The postal code is specific to the user's country or region. In the United States of America, this attribute contains the ZIP code. Maximum length is 40 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getPreferredDataLocation

      @Nullable public String getPreferredDataLocation()
      Gets the preferredDataLocation property value. The preferred data location for the user. For more information, see OneDrive Online Multi-Geo.
      Returns:
      a String
    • getPreferredLanguage

      @Nullable public String getPreferredLanguage()
      Gets the preferredLanguage property value. The preferred language for the user. The preferred language format is based on RFC 4646. The name is a combination of an ISO 639 two-letter lowercase culture code associated with the language, and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values)
      Returns:
      a String
    • getPreferredName

      @Nullable public String getPreferredName()
      Gets the preferredName property value. The preferred name for the user. Not Supported. This attribute returns an empty string.Returned only on $select.
      Returns:
      a String
    • getPresence

      @Nullable public Presence getPresence()
      Gets the presence property value. The presence property
      Returns:
      a Presence
    • getPrint

      @Nullable public UserPrint getPrint()
      Gets the print property value. The print property
      Returns:
      a UserPrint
    • getProvisionedPlans

      @Nullable public List<ProvisionedPlan> getProvisionedPlans()
      Gets the provisionedPlans property value. The plans that are provisioned for the user. Read-only. Not nullable. Returned only on $select. Supports $filter (eq, not, ge, le).
      Returns:
      a List<ProvisionedPlan>
    • getProxyAddresses

      @Nullable public List<String> getProxyAddresses()
      Gets the proxyAddresses property value. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. Changes to the mail property update this collection to include the value as an SMTP address. For more information, see mail and proxyAddresses properties. The proxy address prefixed with SMTP (capitalized) is the primary proxy address, while those addresses prefixed with smtp are the secondary proxy addresses. For Azure AD B2C accounts, this property has a limit of 10 unique addresses. Read-only in Microsoft Graph; you can update this property only through the Microsoft 365 admin center. Not nullable. Returned only on $select. Supports $filter (eq, not, ge, le, startsWith, endsWith, /$count eq 0, /$count ne 0).
      Returns:
      a List<String>
    • getRegisteredDevices

      @Nullable public List<DirectoryObject> getRegisteredDevices()
      Gets the registeredDevices property value. Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects.
      Returns:
      a List<DirectoryObject>
    • getResponsibilities

      @Nullable public List<String> getResponsibilities()
      Gets the responsibilities property value. A list for the user to enumerate their responsibilities. Returned only on $select.
      Returns:
      a List<String>
    • getSchools

      @Nullable public List<String> getSchools()
      Gets the schools property value. A list for the user to enumerate the schools they attended. Returned only on $select.
      Returns:
      a List<String>
    • getScopedRoleMemberOf

      @Nullable public List<ScopedRoleMembership> getScopedRoleMemberOf()
      Gets the scopedRoleMemberOf property value. The scopedRoleMemberOf property
      Returns:
      a List<ScopedRoleMembership>
    • getSecurityIdentifier

      @Nullable public String getSecurityIdentifier()
      Gets the securityIdentifier property value. Security identifier (SID) of the user, used in Windows scenarios. Read-only. Returned by default. Supports $select and $filter (eq, not, ge, le, startsWith).
      Returns:
      a String
    • getServiceProvisioningErrors

      @Nullable public List<ServiceProvisioningError> getServiceProvisioningErrors()
      Gets the serviceProvisioningErrors property value. Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance).
      Returns:
      a List<ServiceProvisioningError>
    • getSettings

      @Nullable public UserSettings getSettings()
      Gets the settings property value. The settings property
      Returns:
      a UserSettings
    • getShowInAddressList

      @Nullable public Boolean getShowInAddressList()
      Gets the showInAddressList property value. Do not use in Microsoft Graph. Manage this property through the Microsoft 365 admin center instead. Represents whether the user should be included in the Outlook global address list. See Known issue.
      Returns:
      a Boolean
    • getSignInActivity

      @Nullable public SignInActivity getSignInActivity()
      Gets the signInActivity property value. Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require a Microsoft Entra ID P1 or P2 license and the AuditLog.Read.All permission.This property isn't returned for a user who never signed in or last signed in before April 2020.
      Returns:
      a SignInActivity
    • getSignInSessionsValidFromDateTime

      @Nullable public OffsetDateTime getSignInSessionsValidFromDateTime()
      Gets the signInSessionsValidFromDateTime property value. Any refresh tokens or session tokens (session cookies) issued before this time are invalid. Applications get an error when using an invalid refresh or session token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application needs to acquire a new refresh token by requesting the authorized endpoint. Read-only. Use revokeSignInSessions to reset. Returned only on $select.
      Returns:
      a OffsetDateTime
    • getSkills

      @Nullable public List<String> getSkills()
      Gets the skills property value. A list for the user to enumerate their skills. Returned only on $select.
      Returns:
      a List<String>
    • getSolutions

      @Nullable public UserSolutionRoot getSolutions()
      Gets the solutions property value. The identifier that relates the user to the working time schedule triggers. Read-Only. Nullable
      Returns:
      a UserSolutionRoot
    • getSponsors

      @Nullable public List<DirectoryObject> getSponsors()
      Gets the sponsors property value. The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand.
      Returns:
      a List<DirectoryObject>
    • getState

      @Nullable public String getState()
      Gets the state property value. The state or province in the user's address. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getStreetAddress

      @Nullable public String getStreetAddress()
      Gets the streetAddress property value. The street address of the user's place of business. Maximum length is 1,024 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getSurname

      @Nullable public String getSurname()
      Gets the surname property value. The user's surname (family name or last name). Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getTeamwork

      @Nullable public UserTeamwork getTeamwork()
      Gets the teamwork property value. A container for Microsoft Teams features available for the user. Read-only. Nullable.
      Returns:
      a UserTeamwork
    • getTodo

      @Nullable public Todo getTodo()
      Gets the todo property value. Represents the To Do services available to a user.
      Returns:
      a Todo
    • getTransitiveMemberOf

      @Nullable public List<DirectoryObject> getTransitiveMemberOf()
      Gets the transitiveMemberOf property value. The groups, including nested groups, and directory roles that a user is a member of. Nullable.
      Returns:
      a List<DirectoryObject>
    • getUsageLocation

      @Nullable public String getUsageLocation()
      Gets the usageLocation property value. A two-letter country code (ISO standard 3166). Required for users that are assigned licenses due to legal requirements to check for availability of services in countries/regions. Examples include: US, JP, and GB. Not nullable. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Returns:
      a String
    • getUserPrincipalName

      @Nullable public String getUserPrincipalName()
      Gets the userPrincipalName property value. The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this value should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, ' . - _ ! # ^ ~. For the complete list of allowed characters, see username policies. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, endsWith) and $orderby.
      Returns:
      a String
    • getUserType

      @Nullable public String getUserType()
      Gets the userType property value. A string value that can be used to classify user types in your directory. The possible values are Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for members and guests, see What are the default user permissions in Microsoft Entra ID?
      Returns:
      a String
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class DirectoryObject
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAboutMe

      public void setAboutMe(@Nullable String value)
      Sets the aboutMe property value. A freeform text entry field for the user to describe themselves. Returned only on $select.
      Parameters:
      value - Value to set for the aboutMe property.
    • setAccountEnabled

      public void setAccountEnabled(@Nullable Boolean value)
      Sets the accountEnabled property value. true if the account is enabled; otherwise, false. This property is required when a user is created. Returned only on $select. Supports $filter (eq, ne, not, and in).
      Parameters:
      value - Value to set for the accountEnabled property.
    • setActivities

      public void setActivities(@Nullable List<UserActivity> value)
      Sets the activities property value. The user's activities across devices. Read-only. Nullable.
      Parameters:
      value - Value to set for the activities property.
    • setAgeGroup

      public void setAgeGroup(@Nullable String value)
      Sets the ageGroup property value. Sets the age group of the user. Allowed values: null, Minor, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).
      Parameters:
      value - Value to set for the ageGroup property.
    • setAgreementAcceptances

      public void setAgreementAcceptances(@Nullable List<AgreementAcceptance> value)
      Sets the agreementAcceptances property value. The user's terms of use acceptance statuses. Read-only. Nullable.
      Parameters:
      value - Value to set for the agreementAcceptances property.
    • setAppRoleAssignments

      public void setAppRoleAssignments(@Nullable List<AppRoleAssignment> value)
      Sets the appRoleAssignments property value. Represents the app roles a user is granted for an application. Supports $expand.
      Parameters:
      value - Value to set for the appRoleAssignments property.
    • setAssignedLicenses

      public void setAssignedLicenses(@Nullable List<AssignedLicense> value)
      Sets the assignedLicenses property value. The licenses that are assigned to the user, including inherited (group-based) licenses. This property doesn't differentiate between directly assigned and inherited licenses. Use the licenseAssignmentStates property to identify the directly assigned and inherited licenses. Not nullable. Returned only on $select. Supports $filter (eq, not, /$count eq 0, /$count ne 0).
      Parameters:
      value - Value to set for the assignedLicenses property.
    • setAssignedPlans

      public void setAssignedPlans(@Nullable List<AssignedPlan> value)
      Sets the assignedPlans property value. The plans that are assigned to the user. Read-only. Not nullable. Returned only on $select. Supports $filter (eq and not).
      Parameters:
      value - Value to set for the assignedPlans property.
    • setAuthentication

      public void setAuthentication(@Nullable Authentication value)
      Sets the authentication property value. The authentication methods that are supported for the user.
      Parameters:
      value - Value to set for the authentication property.
    • setAuthorizationInfo

      public void setAuthorizationInfo(@Nullable AuthorizationInfo value)
      Sets the authorizationInfo property value. The authorizationInfo property
      Parameters:
      value - Value to set for the authorizationInfo property.
    • setBirthday

      public void setBirthday(@Nullable OffsetDateTime value)
      Sets the birthday property value. The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. Returned only on $select.
      Parameters:
      value - Value to set for the birthday property.
    • setBusinessPhones

      public void setBusinessPhones(@Nullable List<String> value)
      Sets the businessPhones property value. The telephone numbers for the user. NOTE: Although it's a string collection, only one number can be set for this property. Read-only for users synced from the on-premises directory. Returned by default. Supports $filter (eq, not, ge, le, startsWith).
      Parameters:
      value - Value to set for the businessPhones property.
    • setCalendar

      public void setCalendar(@Nullable Calendar value)
      Sets the calendar property value. The user's primary calendar. Read-only.
      Parameters:
      value - Value to set for the calendar property.
    • setCalendarGroups

      public void setCalendarGroups(@Nullable List<CalendarGroup> value)
      Sets the calendarGroups property value. The user's calendar groups. Read-only. Nullable.
      Parameters:
      value - Value to set for the calendarGroups property.
    • setCalendars

      public void setCalendars(@Nullable List<Calendar> value)
      Sets the calendars property value. The user's calendars. Read-only. Nullable.
      Parameters:
      value - Value to set for the calendars property.
    • setCalendarView

      public void setCalendarView(@Nullable List<Event> value)
      Sets the calendarView property value. The calendar view for the calendar. Read-only. Nullable.
      Parameters:
      value - Value to set for the calendarView property.
    • setChats

      public void setChats(@Nullable List<Chat> value)
      Sets the chats property value. The chats property
      Parameters:
      value - Value to set for the chats property.
    • setCity

      public void setCity(@Nullable String value)
      Sets the city property value. The city where the user is located. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the city property.
    • setCloudClipboard

      public void setCloudClipboard(@Nullable CloudClipboardRoot value)
      Sets the cloudClipboard property value. The cloudClipboard property
      Parameters:
      value - Value to set for the cloudClipboard property.
    • setCompanyName

      public void setCompanyName(@Nullable String value)
      Sets the companyName property value. The name of the company that the user is associated with. This property can be useful for describing the company that a guest comes from. The maximum length is 64 characters.Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the companyName property.
    • setConsentProvidedForMinor

      public void setConsentProvidedForMinor(@Nullable String value)
      Sets the consentProvidedForMinor property value. Sets whether consent was obtained for minors. Allowed values: null, Granted, Denied, and NotRequired. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).
      Parameters:
      value - Value to set for the consentProvidedForMinor property.
    • setContactFolders

      public void setContactFolders(@Nullable List<ContactFolder> value)
      Sets the contactFolders property value. The user's contacts folders. Read-only. Nullable.
      Parameters:
      value - Value to set for the contactFolders property.
    • setContacts

      public void setContacts(@Nullable List<Contact> value)
      Sets the contacts property value. The user's contacts. Read-only. Nullable.
      Parameters:
      value - Value to set for the contacts property.
    • setCountry

      public void setCountry(@Nullable String value)
      Sets the country property value. The country or region where the user is located; for example, US or UK. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the country property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and UTC. The value can't be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Microsoft Entra ID. Property is null for some users created before June 2018 and on-premises users that were synced to Microsoft Entra ID before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).
      Parameters:
      value - Value to set for the createdDateTime property.
    • setCreatedObjects

      public void setCreatedObjects(@Nullable List<DirectoryObject> value)
      Sets the createdObjects property value. Directory objects that the user created. Read-only. Nullable.
      Parameters:
      value - Value to set for the createdObjects property.
    • setCreationType

      public void setCreationType(@Nullable String value)
      Sets the creationType property value. Indicates whether the user account was created through one of the following methods: As a regular school or work account (null). As an external account (Invitation). As a local account for an Azure Active Directory B2C tenant (LocalAccount). Through self-service sign-up by an internal user using email verification (EmailVerified). Through self-service sign-up by a guest signing up through a link that is part of a user flow (SelfServiceSignUp). Read-only.Returned only on $select. Supports $filter (eq, ne, not, in).
      Parameters:
      value - Value to set for the creationType property.
    • setCustomSecurityAttributes

      public void setCustomSecurityAttributes(@Nullable CustomSecurityAttributeValue value)
      Sets the customSecurityAttributes property value. An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). The filter value is case-sensitive. To read this property, the calling app must be assigned the CustomSecAttributeAssignment.Read.All permission. To write this property, the calling app must be assigned the CustomSecAttributeAssignment.ReadWrite.All permissions. To read or write this property in delegated scenarios, the admin must be assigned the Attribute Assignment Administrator role.
      Parameters:
      value - Value to set for the customSecurityAttributes property.
    • setDepartment

      public void setDepartment(@Nullable String value)
      Sets the department property value. The name of the department in which the user works. Maximum length is 64 characters. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, and eq on null values).
      Parameters:
      value - Value to set for the department property.
    • setDeviceEnrollmentLimit

      public void setDeviceEnrollmentLimit(@Nullable Integer value)
      Sets the deviceEnrollmentLimit property value. The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.
      Parameters:
      value - Value to set for the deviceEnrollmentLimit property.
    • setDeviceManagementTroubleshootingEvents

      public void setDeviceManagementTroubleshootingEvents(@Nullable List<DeviceManagementTroubleshootingEvent> value)
      Sets the deviceManagementTroubleshootingEvents property value. The list of troubleshooting events for this user.
      Parameters:
      value - Value to set for the deviceManagementTroubleshootingEvents property.
    • setDirectReports

      public void setDirectReports(@Nullable List<DirectoryObject> value)
      Sets the directReports property value. The users and contacts that report to the user. (The users and contacts that have their manager property set to this user.) Read-only. Nullable. Supports $expand.
      Parameters:
      value - Value to set for the directReports property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and family name. This property is required when a user is created and it can't be cleared during updates. Maximum length is 256 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values), $orderby, and $search.
      Parameters:
      value - Value to set for the displayName property.
    • setDrive

      public void setDrive(@Nullable Drive value)
      Sets the drive property value. The user's OneDrive. Read-only.
      Parameters:
      value - Value to set for the drive property.
    • setDrives

      public void setDrives(@Nullable List<Drive> value)
      Sets the drives property value. A collection of drives available for this user. Read-only.
      Parameters:
      value - Value to set for the drives property.
    • setEmployeeExperience

      public void setEmployeeExperience(@Nullable EmployeeExperienceUser value)
      Sets the employeeExperience property value. The employeeExperience property
      Parameters:
      value - Value to set for the employeeExperience property.
    • setEmployeeHireDate

      public void setEmployeeHireDate(@Nullable OffsetDateTime value)
      Sets the employeeHireDate property value. The date and time when the user was hired or will start work in a future hire. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).
      Parameters:
      value - Value to set for the employeeHireDate property.
    • setEmployeeId

      public void setEmployeeId(@Nullable String value)
      Sets the employeeId property value. The employee identifier assigned to the user by the organization. The maximum length is 16 characters. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the employeeId property.
    • setEmployeeLeaveDateTime

      public void setEmployeeLeaveDateTime(@Nullable OffsetDateTime value)
      Sets the employeeLeaveDateTime property value. The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs at least one of the following Microsoft Entra roles: Lifecycle Workflows Administrator (least privilege), Global Reader. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user.
      Parameters:
      value - Value to set for the employeeLeaveDateTime property.
    • setEmployeeOrgData

      public void setEmployeeOrgData(@Nullable EmployeeOrgData value)
      Sets the employeeOrgData property value. Represents organization data (for example, division and costCenter) associated with a user. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).
      Parameters:
      value - Value to set for the employeeOrgData property.
    • setEmployeeType

      public void setEmployeeType(@Nullable String value)
      Sets the employeeType property value. Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith).
      Parameters:
      value - Value to set for the employeeType property.
    • setEvents

      public void setEvents(@Nullable List<Event> value)
      Sets the events property value. The user's events. Default is to show Events under the Default Calendar. Read-only. Nullable.
      Parameters:
      value - Value to set for the events property.
    • setExtensions

      public void setExtensions(@Nullable List<Extension> value)
      Sets the extensions property value. The collection of open extensions defined for the user. Read-only. Supports $expand. Nullable.
      Parameters:
      value - Value to set for the extensions property.
    • setExternalUserState

      public void setExternalUserState(@Nullable String value)
      Sets the externalUserState property value. For a guest invited to the tenant using the invitation API, this property represents the invited user's invitation status. For invited users, the state can be PendingAcceptance or Accepted, or null for all other users. Returned only on $select. Supports $filter (eq, ne, not , in).
      Parameters:
      value - Value to set for the externalUserState property.
    • setExternalUserStateChangeDateTime

      public void setExternalUserStateChangeDateTime(@Nullable OffsetDateTime value)
      Sets the externalUserStateChangeDateTime property value. Shows the timestamp for the latest change to the externalUserState property. Returned only on $select. Supports $filter (eq, ne, not , in).
      Parameters:
      value - Value to set for the externalUserStateChangeDateTime property.
    • setFaxNumber

      public void setFaxNumber(@Nullable String value)
      Sets the faxNumber property value. The fax number of the user. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the faxNumber property.
    • setFollowedSites

      public void setFollowedSites(@Nullable List<Site> value)
      Sets the followedSites property value. The followedSites property
      Parameters:
      value - Value to set for the followedSites property.
    • setGivenName

      public void setGivenName(@Nullable String value)
      Sets the givenName property value. The given name (first name) of the user. Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the givenName property.
    • setHireDate

      public void setHireDate(@Nullable OffsetDateTime value)
      Sets the hireDate property value. The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. Returned only on $select. Note: This property is specific to SharePoint in Microsoft 365. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs.
      Parameters:
      value - Value to set for the hireDate property.
    • setIdentities

      public void setIdentities(@Nullable List<ObjectIdentity> value)
      Sets the identities property value. Represents the identities that can be used to sign in to this user account. Microsoft (also known as a local account), organizations, or social identity providers such as Facebook, Google, and Microsoft can provide identity and tie it to a user account. It might contain multiple items with the same signInType value. Returned only on $select. Supports $filter (eq) with limitations.
      Parameters:
      value - Value to set for the identities property.
    • setImAddresses

      public void setImAddresses(@Nullable List<String> value)
      Sets the imAddresses property value. The instant message voice-over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only. Returned only on $select. Supports $filter (eq, not, ge, le, startsWith).
      Parameters:
      value - Value to set for the imAddresses property.
    • setInferenceClassification

      public void setInferenceClassification(@Nullable InferenceClassification value)
      Sets the inferenceClassification property value. Relevance classification of the user's messages based on explicit designations that override inferred relevance or importance.
      Parameters:
      value - Value to set for the inferenceClassification property.
    • setInsights

      public void setInsights(@Nullable ItemInsights value)
      Sets the insights property value. Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable.
      Parameters:
      value - Value to set for the insights property.
    • setInterests

      public void setInterests(@Nullable List<String> value)
      Sets the interests property value. A list for the user to describe their interests. Returned only on $select.
      Parameters:
      value - Value to set for the interests property.
    • setIsManagementRestricted

      public void setIsManagementRestricted(@Nullable Boolean value)
      Sets the isManagementRestricted property value. The isManagementRestricted property
      Parameters:
      value - Value to set for the isManagementRestricted property.
    • setIsResourceAccount

      public void setIsResourceAccount(@Nullable Boolean value)
      Sets the isResourceAccount property value. Don't use reserved for future use.
      Parameters:
      value - Value to set for the isResourceAccount property.
    • setJobTitle

      public void setJobTitle(@Nullable String value)
      Sets the jobTitle property value. The user's job title. Maximum length is 128 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the jobTitle property.
    • setJoinedTeams

      public void setJoinedTeams(@Nullable List<Team> value)
      Sets the joinedTeams property value. The joinedTeams property
      Parameters:
      value - Value to set for the joinedTeams property.
    • setLastPasswordChangeDateTime

      public void setLastPasswordChangeDateTime(@Nullable OffsetDateTime value)
      Sets the lastPasswordChangeDateTime property value. The time when this Microsoft Entra user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select.
      Parameters:
      value - Value to set for the lastPasswordChangeDateTime property.
    • setLegalAgeGroupClassification

      public void setLegalAgeGroupClassification(@Nullable String value)
      Sets the legalAgeGroupClassification property value. Used by enterprise applications to determine the legal age group of the user. This property is read-only and calculated based on ageGroup and consentProvidedForMinor properties. Allowed values: null, Undefined, MinorWithOutParentalConsent, MinorWithParentalConsent, MinorNoParentalConsentRequired, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select.
      Parameters:
      value - Value to set for the legalAgeGroupClassification property.
    • setLicenseAssignmentStates

      public void setLicenseAssignmentStates(@Nullable List<LicenseAssignmentState> value)
      Sets the licenseAssignmentStates property value. State of license assignments for this user. Also indicates licenses that are directly assigned or the user inherited through group memberships. Read-only. Returned only on $select.
      Parameters:
      value - Value to set for the licenseAssignmentStates property.
    • setLicenseDetails

      public void setLicenseDetails(@Nullable List<LicenseDetails> value)
      Sets the licenseDetails property value. A collection of this user's license details. Read-only.
      Parameters:
      value - Value to set for the licenseDetails property.
    • setMail

      public void setMail(@Nullable String value)
      Sets the mail property value. The SMTP address for the user, for example, jeff@contoso.com. Changes to this property update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, endsWith, and eq on null values).
      Parameters:
      value - Value to set for the mail property.
    • setMailboxSettings

      public void setMailboxSettings(@Nullable MailboxSettings value)
      Sets the mailboxSettings property value. Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select.
      Parameters:
      value - Value to set for the mailboxSettings property.
    • setMailFolders

      public void setMailFolders(@Nullable List<MailFolder> value)
      Sets the mailFolders property value. The user's mail folders. Read-only. Nullable.
      Parameters:
      value - Value to set for the mailFolders property.
    • setMailNickname

      public void setMailNickname(@Nullable String value)
      Sets the mailNickname property value. The mail alias for the user. This property must be specified when a user is created. Maximum length is 64 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the mailNickname property.
    • setManagedAppRegistrations

      public void setManagedAppRegistrations(@Nullable List<ManagedAppRegistration> value)
      Sets the managedAppRegistrations property value. Zero or more managed app registrations that belong to the user.
      Parameters:
      value - Value to set for the managedAppRegistrations property.
    • setManagedDevices

      public void setManagedDevices(@Nullable List<ManagedDevice> value)
      Sets the managedDevices property value. The managed devices associated with the user.
      Parameters:
      value - Value to set for the managedDevices property.
    • setManager

      public void setManager(@Nullable DirectoryObject value)
      Sets the manager property value. The user or contact that is this user's manager. Read-only. Supports $expand.
      Parameters:
      value - Value to set for the manager property.
    • setMemberOf

      public void setMemberOf(@Nullable List<DirectoryObject> value)
      Sets the memberOf property value. The groups and directory roles that the user is a member of. Read-only. Nullable. Supports $expand.
      Parameters:
      value - Value to set for the memberOf property.
    • setMessages

      public void setMessages(@Nullable List<Message> value)
      Sets the messages property value. The messages in a mailbox or folder. Read-only. Nullable.
      Parameters:
      value - Value to set for the messages property.
    • setMobilePhone

      public void setMobilePhone(@Nullable String value)
      Sets the mobilePhone property value. The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory. Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values) and $search.
      Parameters:
      value - Value to set for the mobilePhone property.
    • setMySite

      public void setMySite(@Nullable String value)
      Sets the mySite property value. The URL for the user's site. Returned only on $select.
      Parameters:
      value - Value to set for the mySite property.
    • setOauth2PermissionGrants

      public void setOauth2PermissionGrants(@Nullable List<OAuth2PermissionGrant> value)
      Sets the oauth2PermissionGrants property value. The oauth2PermissionGrants property
      Parameters:
      value - Value to set for the oauth2PermissionGrants property.
    • setOfficeLocation

      public void setOfficeLocation(@Nullable String value)
      Sets the officeLocation property value. The office location in the user's place of business. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the officeLocation property.
    • setOnenote

      public void setOnenote(@Nullable Onenote value)
      Sets the onenote property value. The onenote property
      Parameters:
      value - Value to set for the onenote property.
    • setOnlineMeetings

      public void setOnlineMeetings(@Nullable List<OnlineMeeting> value)
      Sets the onlineMeetings property value. Information about a meeting, including the URL used to join a meeting, the attendees list, and the description.
      Parameters:
      value - Value to set for the onlineMeetings property.
    • setOnPremisesDistinguishedName

      public void setOnPremisesDistinguishedName(@Nullable String value)
      Sets the onPremisesDistinguishedName property value. Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select.
      Parameters:
      value - Value to set for the onPremisesDistinguishedName property.
    • setOnPremisesDomainName

      public void setOnPremisesDomainName(@Nullable String value)
      Sets the onPremisesDomainName property value. Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select.
      Parameters:
      value - Value to set for the onPremisesDomainName property.
    • setOnPremisesExtensionAttributes

      public void setOnPremisesExtensionAttributes(@Nullable OnPremisesExtensionAttributes value)
      Sets the onPremisesExtensionAttributes property value. Contains extensionAttributes1-15 for the user. These extension attributes are also known as Exchange custom attributes 1-15. Each attribute can store up to 1024 characters. For an onPremisesSyncEnabled user, the source of authority for this set of properties is the on-premises and is read-only. For a cloud-only user (where onPremisesSyncEnabled is false), these properties can be set during the creation or update of a user object. For a cloud-only user previously synced from on-premises Active Directory, these properties are read-only in Microsoft Graph but can be fully managed through the Exchange Admin Center or the Exchange Online V2 module in PowerShell. Returned only on $select. Supports $filter (eq, ne, not, in).
      Parameters:
      value - Value to set for the onPremisesExtensionAttributes property.
    • setOnPremisesImmutableId

      public void setOnPremisesImmutableId(@Nullable String value)
      Sets the onPremisesImmutableId property value. This property is used to associate an on-premises Active Directory user account to their Microsoft Entra user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).
      Parameters:
      value - Value to set for the onPremisesImmutableId property.
    • setOnPremisesLastSyncDateTime

      public void setOnPremisesLastSyncDateTime(@Nullable OffsetDateTime value)
      Sets the onPremisesLastSyncDateTime property value. Indicates the last time at which the object was synced with the on-premises directory; for example: 2013-02-16T03:04:54Z. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).
      Parameters:
      value - Value to set for the onPremisesLastSyncDateTime property.
    • setOnPremisesProvisioningErrors

      public void setOnPremisesProvisioningErrors(@Nullable List<OnPremisesProvisioningError> value)
      Sets the onPremisesProvisioningErrors property value. Errors when using Microsoft synchronization product during provisioning. Returned only on $select. Supports $filter (eq, not, ge, le).
      Parameters:
      value - Value to set for the onPremisesProvisioningErrors property.
    • setOnPremisesSamAccountName

      public void setOnPremisesSamAccountName(@Nullable String value)
      Sets the onPremisesSamAccountName property value. Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).
      Parameters:
      value - Value to set for the onPremisesSamAccountName property.
    • setOnPremisesSecurityIdentifier

      public void setOnPremisesSecurityIdentifier(@Nullable String value)
      Sets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq including on null values).
      Parameters:
      value - Value to set for the onPremisesSecurityIdentifier property.
    • setOnPremisesSyncEnabled

      public void setOnPremisesSyncEnabled(@Nullable Boolean value)
      Sets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Microsoft Entra ID. Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values).
      Parameters:
      value - Value to set for the onPremisesSyncEnabled property.
    • setOnPremisesUserPrincipalName

      public void setOnPremisesUserPrincipalName(@Nullable String value)
      Sets the onPremisesUserPrincipalName property value. Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).
      Parameters:
      value - Value to set for the onPremisesUserPrincipalName property.
    • setOtherMails

      public void setOtherMails(@Nullable List<String> value)
      Sets the otherMails property value. A list of other email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com']. Can store up to 250 values, each with a limit of 250 characters. NOTE: This property can't contain accent characters. Returned only on $select. Supports $filter (eq, not, ge, le, in, startsWith, endsWith, /$count eq 0, /$count ne 0).
      Parameters:
      value - Value to set for the otherMails property.
    • setOutlook

      public void setOutlook(@Nullable OutlookUser value)
      Sets the outlook property value. The outlook property
      Parameters:
      value - Value to set for the outlook property.
    • setOwnedDevices

      public void setOwnedDevices(@Nullable List<DirectoryObject> value)
      Sets the ownedDevices property value. Devices the user owns. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).
      Parameters:
      value - Value to set for the ownedDevices property.
    • setOwnedObjects

      public void setOwnedObjects(@Nullable List<DirectoryObject> value)
      Sets the ownedObjects property value. Directory objects the user owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).
      Parameters:
      value - Value to set for the ownedObjects property.
    • setPasswordPolicies

      public void setPasswordPolicies(@Nullable String value)
      Sets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two might be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Microsoft Entra password policies. Supports $filter (ne, not, and eq on null values).
      Parameters:
      value - Value to set for the passwordPolicies property.
    • setPasswordProfile

      public void setPasswordProfile(@Nullable PasswordProfile value)
      Sets the passwordProfile property value. Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). To update this property: User-PasswordProfile.ReadWrite.All is the least privileged permission to update this property. In delegated scenarios, the User Administrator Microsoft Entra role is the least privileged admin role supported to update this property for nonadmin users. Privileged Authentication Administrator is the least privileged role that's allowed to update this property for all administrators in the tenant. In general, the signed-in user must have a higher privileged administrator role as indicated in Who can reset passwords. In app-only scenarios, the calling app must be assigned a supported permission and at least the User Administrator Microsoft Entra role.
      Parameters:
      value - Value to set for the passwordProfile property.
    • setPastProjects

      public void setPastProjects(@Nullable List<String> value)
      Sets the pastProjects property value. A list for the user to enumerate their past projects. Returned only on $select.
      Parameters:
      value - Value to set for the pastProjects property.
    • setPeople

      public void setPeople(@Nullable List<Person> value)
      Sets the people property value. People that are relevant to the user. Read-only. Nullable.
      Parameters:
      value - Value to set for the people property.
    • setPermissionGrants

      public void setPermissionGrants(@Nullable List<ResourceSpecificPermissionGrant> value)
      Sets the permissionGrants property value. List all resource-specific permission grants of a user.
      Parameters:
      value - Value to set for the permissionGrants property.
    • setPhoto

      public void setPhoto(@Nullable ProfilePhoto value)
      Sets the photo property value. The user's profile photo. Read-only.
      Parameters:
      value - Value to set for the photo property.
    • setPhotos

      public void setPhotos(@Nullable List<ProfilePhoto> value)
      Sets the photos property value. The collection of the user's profile photos in different sizes. Read-only.
      Parameters:
      value - Value to set for the photos property.
    • setPlanner

      public void setPlanner(@Nullable PlannerUser value)
      Sets the planner property value. Entry-point to the Planner resource that might exist for a user. Read-only.
      Parameters:
      value - Value to set for the planner property.
    • setPostalCode

      public void setPostalCode(@Nullable String value)
      Sets the postalCode property value. The postal code for the user's postal address. The postal code is specific to the user's country or region. In the United States of America, this attribute contains the ZIP code. Maximum length is 40 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the postalCode property.
    • setPreferredDataLocation

      public void setPreferredDataLocation(@Nullable String value)
      Sets the preferredDataLocation property value. The preferred data location for the user. For more information, see OneDrive Online Multi-Geo.
      Parameters:
      value - Value to set for the preferredDataLocation property.
    • setPreferredLanguage

      public void setPreferredLanguage(@Nullable String value)
      Sets the preferredLanguage property value. The preferred language for the user. The preferred language format is based on RFC 4646. The name is a combination of an ISO 639 two-letter lowercase culture code associated with the language, and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values)
      Parameters:
      value - Value to set for the preferredLanguage property.
    • setPreferredName

      public void setPreferredName(@Nullable String value)
      Sets the preferredName property value. The preferred name for the user. Not Supported. This attribute returns an empty string.Returned only on $select.
      Parameters:
      value - Value to set for the preferredName property.
    • setPresence

      public void setPresence(@Nullable Presence value)
      Sets the presence property value. The presence property
      Parameters:
      value - Value to set for the presence property.
    • setPrint

      public void setPrint(@Nullable UserPrint value)
      Sets the print property value. The print property
      Parameters:
      value - Value to set for the print property.
    • setProvisionedPlans

      public void setProvisionedPlans(@Nullable List<ProvisionedPlan> value)
      Sets the provisionedPlans property value. The plans that are provisioned for the user. Read-only. Not nullable. Returned only on $select. Supports $filter (eq, not, ge, le).
      Parameters:
      value - Value to set for the provisionedPlans property.
    • setProxyAddresses

      public void setProxyAddresses(@Nullable List<String> value)
      Sets the proxyAddresses property value. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. Changes to the mail property update this collection to include the value as an SMTP address. For more information, see mail and proxyAddresses properties. The proxy address prefixed with SMTP (capitalized) is the primary proxy address, while those addresses prefixed with smtp are the secondary proxy addresses. For Azure AD B2C accounts, this property has a limit of 10 unique addresses. Read-only in Microsoft Graph; you can update this property only through the Microsoft 365 admin center. Not nullable. Returned only on $select. Supports $filter (eq, not, ge, le, startsWith, endsWith, /$count eq 0, /$count ne 0).
      Parameters:
      value - Value to set for the proxyAddresses property.
    • setRegisteredDevices

      public void setRegisteredDevices(@Nullable List<DirectoryObject> value)
      Sets the registeredDevices property value. Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects.
      Parameters:
      value - Value to set for the registeredDevices property.
    • setResponsibilities

      public void setResponsibilities(@Nullable List<String> value)
      Sets the responsibilities property value. A list for the user to enumerate their responsibilities. Returned only on $select.
      Parameters:
      value - Value to set for the responsibilities property.
    • setSchools

      public void setSchools(@Nullable List<String> value)
      Sets the schools property value. A list for the user to enumerate the schools they attended. Returned only on $select.
      Parameters:
      value - Value to set for the schools property.
    • setScopedRoleMemberOf

      public void setScopedRoleMemberOf(@Nullable List<ScopedRoleMembership> value)
      Sets the scopedRoleMemberOf property value. The scopedRoleMemberOf property
      Parameters:
      value - Value to set for the scopedRoleMemberOf property.
    • setSecurityIdentifier

      public void setSecurityIdentifier(@Nullable String value)
      Sets the securityIdentifier property value. Security identifier (SID) of the user, used in Windows scenarios. Read-only. Returned by default. Supports $select and $filter (eq, not, ge, le, startsWith).
      Parameters:
      value - Value to set for the securityIdentifier property.
    • setServiceProvisioningErrors

      public void setServiceProvisioningErrors(@Nullable List<ServiceProvisioningError> value)
      Sets the serviceProvisioningErrors property value. Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance).
      Parameters:
      value - Value to set for the serviceProvisioningErrors property.
    • setSettings

      public void setSettings(@Nullable UserSettings value)
      Sets the settings property value. The settings property
      Parameters:
      value - Value to set for the settings property.
    • setShowInAddressList

      public void setShowInAddressList(@Nullable Boolean value)
      Sets the showInAddressList property value. Do not use in Microsoft Graph. Manage this property through the Microsoft 365 admin center instead. Represents whether the user should be included in the Outlook global address list. See Known issue.
      Parameters:
      value - Value to set for the showInAddressList property.
    • setSignInActivity

      public void setSignInActivity(@Nullable SignInActivity value)
      Sets the signInActivity property value. Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require a Microsoft Entra ID P1 or P2 license and the AuditLog.Read.All permission.This property isn't returned for a user who never signed in or last signed in before April 2020.
      Parameters:
      value - Value to set for the signInActivity property.
    • setSignInSessionsValidFromDateTime

      public void setSignInSessionsValidFromDateTime(@Nullable OffsetDateTime value)
      Sets the signInSessionsValidFromDateTime property value. Any refresh tokens or session tokens (session cookies) issued before this time are invalid. Applications get an error when using an invalid refresh or session token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application needs to acquire a new refresh token by requesting the authorized endpoint. Read-only. Use revokeSignInSessions to reset. Returned only on $select.
      Parameters:
      value - Value to set for the signInSessionsValidFromDateTime property.
    • setSkills

      public void setSkills(@Nullable List<String> value)
      Sets the skills property value. A list for the user to enumerate their skills. Returned only on $select.
      Parameters:
      value - Value to set for the skills property.
    • setSolutions

      public void setSolutions(@Nullable UserSolutionRoot value)
      Sets the solutions property value. The identifier that relates the user to the working time schedule triggers. Read-Only. Nullable
      Parameters:
      value - Value to set for the solutions property.
    • setSponsors

      public void setSponsors(@Nullable List<DirectoryObject> value)
      Sets the sponsors property value. The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand.
      Parameters:
      value - Value to set for the sponsors property.
    • setState

      public void setState(@Nullable String value)
      Sets the state property value. The state or province in the user's address. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the state property.
    • setStreetAddress

      public void setStreetAddress(@Nullable String value)
      Sets the streetAddress property value. The street address of the user's place of business. Maximum length is 1,024 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the streetAddress property.
    • setSurname

      public void setSurname(@Nullable String value)
      Sets the surname property value. The user's surname (family name or last name). Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the surname property.
    • setTeamwork

      public void setTeamwork(@Nullable UserTeamwork value)
      Sets the teamwork property value. A container for Microsoft Teams features available for the user. Read-only. Nullable.
      Parameters:
      value - Value to set for the teamwork property.
    • setTodo

      public void setTodo(@Nullable Todo value)
      Sets the todo property value. Represents the To Do services available to a user.
      Parameters:
      value - Value to set for the todo property.
    • setTransitiveMemberOf

      public void setTransitiveMemberOf(@Nullable List<DirectoryObject> value)
      Sets the transitiveMemberOf property value. The groups, including nested groups, and directory roles that a user is a member of. Nullable.
      Parameters:
      value - Value to set for the transitiveMemberOf property.
    • setUsageLocation

      public void setUsageLocation(@Nullable String value)
      Sets the usageLocation property value. A two-letter country code (ISO standard 3166). Required for users that are assigned licenses due to legal requirements to check for availability of services in countries/regions. Examples include: US, JP, and GB. Not nullable. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
      Parameters:
      value - Value to set for the usageLocation property.
    • setUserPrincipalName

      public void setUserPrincipalName(@Nullable String value)
      Sets the userPrincipalName property value. The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this value should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, ' . - _ ! # ^ ~. For the complete list of allowed characters, see username policies. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, endsWith) and $orderby.
      Parameters:
      value - Value to set for the userPrincipalName property.
    • setUserType

      public void setUserType(@Nullable String value)
      Sets the userType property value. A string value that can be used to classify user types in your directory. The possible values are Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for members and guests, see What are the default user permissions in Microsoft Entra ID?
      Parameters:
      value - Value to set for the userType property.