你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphUserInner Class

public final class MicrosoftGraphUserInner
extends MicrosoftGraphDirectoryObjectInner

user Represents an Azure Active Directory user object.

Constructor Summary

Constructor Description
MicrosoftGraphUserInner()

Creates an instance of MicrosoftGraphUserInner class.

Method Summary

Modifier and Type Method and Description
String aboutMe()

Get the aboutMe property: A freeform text entry field for the user to describe themselves.

Boolean accountEnabled()

Get the accountEnabled property: true if the account is enabled; otherwise, false.

List<MicrosoftGraphUserActivity> activities()

Get the activities property: The user's activities across devices.

Map<String,Object> additionalProperties()

Get the additionalProperties property: Represents an Azure Active Directory user object.

String ageGroup()

Get the ageGroup property: Sets the age group of the user.

List<MicrosoftGraphAppRoleAssignment> appRoleAssignments()

Get the appRoleAssignments property: The appRoleAssignments property.

List<MicrosoftGraphAssignedLicense> assignedLicenses()

Get the assignedLicenses property: The licenses that are assigned to the user.

List<MicrosoftGraphAssignedPlan> assignedPlans()

Get the assignedPlans property: The plans that are assigned to the user.

OffsetDateTime birthday()

Get the birthday property: The birthday of the user.

List<String> businessPhones()

Get the businessPhones property: The telephone numbers for the user.

MicrosoftGraphCalendar calendar()

Get the calendar property: calendar.

List<MicrosoftGraphCalendarGroup> calendarGroups()

Get the calendarGroups property: The user's calendar groups.

List<MicrosoftGraphEvent> calendarView()

Get the calendarView property: The calendar view for the calendar.

List<MicrosoftGraphCalendar> calendars()

Get the calendars property: The user's calendars.

String city()

Get the city property: The city in which the user is located.

String companyName()

Get the companyName property: The company name which the user is associated.

String consentProvidedForMinor()

Get the consentProvidedForMinor property: Sets whether consent has been obtained for minors.

List<MicrosoftGraphContactFolder> contactFolders()

Get the contactFolders property: The user's contacts folders.

List<MicrosoftGraphContact> contacts()

Get the contacts property: The user's contacts.

String country()

Get the country property: The country/region in which the user is located; for example, 'US' or 'UK'.

OffsetDateTime createdDateTime()

Get the createdDateTime property: The created date of the user object.

List<MicrosoftGraphDirectoryObjectInner> createdObjects()

Get the createdObjects property: Directory objects that were created by the user.

String creationType()

Get the creationType property: Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified).

String department()

Get the department property: The name for the department in which the user works.

Integer deviceEnrollmentLimit()

Get the deviceEnrollmentLimit property: The limit on the maximum number of devices that the user is permitted to enroll.

List<MicrosoftGraphDeviceManagementTroubleshootingEvent> deviceManagementTroubleshootingEvents()

Get the deviceManagementTroubleshootingEvents property: The list of troubleshooting events for this user.

List<MicrosoftGraphDirectoryObjectInner> directReports()

Get the directReports property: The users and contacts that report to the user.

String displayName()

Get the displayName property: The name displayed in the address book for the user.

MicrosoftGraphDrive drive()

Get the drive property: drive.

List<MicrosoftGraphDrive> drives()

Get the drives property: A collection of drives available for this user.

OffsetDateTime employeeHireDate()

Get the employeeHireDate property: The date and time when the user was hired or will start work in case of a future hire.

String employeeId()

Get the employeeId property: The employee identifier assigned to the user by the organization.

MicrosoftGraphEmployeeOrgData employeeOrgData()

Get the employeeOrgData property: employeeOrgData.

String employeeType()

Get the employeeType property: Captures enterprise worker type: Employee, Contractor, Consultant, Vendor, etc.

List<MicrosoftGraphEvent> events()

Get the events property: The user's events.

List<MicrosoftGraphExtension> extensions()

Get the extensions property: The collection of open extensions defined for the user.

String externalUserState()

Get the externalUserState property: The externalUserState property.

OffsetDateTime externalUserStateChangeDateTime()

Get the externalUserStateChangeDateTime property: Shows the timestamp for the latest change to the externalUserState property.

String faxNumber()

Get the faxNumber property: The fax number of the user.

List<MicrosoftGraphSite> followedSites()

Get the followedSites property: The followedSites property.

static MicrosoftGraphUserInner fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphUserInner from the JsonReader.

String givenName()

Get the givenName property: The given name (first name) of the user.

OffsetDateTime hireDate()

Get the hireDate property: The hire date of the user.

List<MicrosoftGraphObjectIdentity> identities()

Get the identities property: Represents the identities that can be used to sign in to this user account.

List<String> imAddresses()

Get the imAddresses property: The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user.

MicrosoftGraphInferenceClassification inferenceClassification()

Get the inferenceClassification property: inferenceClassification.

MicrosoftGraphOfficeGraphInsights insights()

Get the insights property: officeGraphInsights.

List<String> interests()

Get the interests property: A list for the user to describe their interests.

Boolean isResourceAccount()

Get the isResourceAccount property: Do not use \u2013 reserved for future use.

String jobTitle()

Get the jobTitle property: The user's job title.

List<MicrosoftGraphTeamInner> joinedTeams()

Get the joinedTeams property: The joinedTeams property.

OffsetDateTime lastPasswordChangeDateTime()

Get the lastPasswordChangeDateTime property: The time when this Azure AD user last changed their password.

String legalAgeGroupClassification()

Get the legalAgeGroupClassification property: Used by enterprise applications to determine the legal age group of the user.

List<MicrosoftGraphLicenseAssignmentState> licenseAssignmentStates()

Get the licenseAssignmentStates property: State of license assignments for this user.

List<MicrosoftGraphLicenseDetails> licenseDetails()

Get the licenseDetails property: A collection of this user's license details.

String mail()

Get the mail property: The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'.

List<MicrosoftGraphMailFolder> mailFolders()

Get the mailFolders property: The user's mail folders.

String mailNickname()

Get the mailNickname property: The mail alias for the user.

MicrosoftGraphMailboxSettings mailboxSettings()

Get the mailboxSettings property: mailboxSettings.

List<MicrosoftGraphManagedAppRegistration> managedAppRegistrations()

Get the managedAppRegistrations property: Zero or more managed app registrations that belong to the user.

List<MicrosoftGraphManagedDevice> managedDevices()

Get the managedDevices property: The managed devices associated with the user.

MicrosoftGraphDirectoryObjectInner manager()

Get the manager property: Represents an Azure Active Directory object.

List<MicrosoftGraphDirectoryObjectInner> memberOf()

Get the memberOf property: The groups and directory roles that the user is a member of.

List<MicrosoftGraphMessage> messages()

Get the messages property: The messages in a mailbox or folder.

String mobilePhone()

Get the mobilePhone property: The primary cellular telephone number for the user.

String mySite()

Get the mySite property: The URL for the user's personal site.

List<MicrosoftGraphOAuth2PermissionGrant> oauth2PermissionGrants()

Get the oauth2PermissionGrants property: The oauth2PermissionGrants property.

String officeLocation()

Get the officeLocation property: The office location in the user's place of business.

String onPremisesDistinguishedName()

Get the onPremisesDistinguishedName property: Contains the on-premises Active Directory distinguished name or DN.

String onPremisesDomainName()

Get the onPremisesDomainName property: Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory.

MicrosoftGraphOnPremisesExtensionAttributes onPremisesExtensionAttributes()

Get the onPremisesExtensionAttributes property: onPremisesExtensionAttributes.

String onPremisesImmutableId()

Get the onPremisesImmutableId property: This property is used to associate an on-premises Active Directory user account to their Azure AD user object.

OffsetDateTime onPremisesLastSyncDateTime()

Get the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.

List<MicrosoftGraphOnPremisesProvisioningError> onPremisesProvisioningErrors()

Get the onPremisesProvisioningErrors property: Errors when using Microsoft synchronization product during provisioning.

String onPremisesSamAccountName()

Get the onPremisesSamAccountName property: Contains the on-premises samAccountName synchronized from the on-premises directory.

String onPremisesSecurityIdentifier()

Get the onPremisesSecurityIdentifier property: Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud.

Boolean onPremisesSyncEnabled()

Get the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default).

String onPremisesUserPrincipalName()

Get the onPremisesUserPrincipalName property: Contains the on-premises userPrincipalName synchronized from the on-premises directory.

MicrosoftGraphOnenote onenote()

Get the onenote property: onenote.

List<MicrosoftGraphOnlineMeeting> onlineMeetings()

Get the onlineMeetings property: The onlineMeetings property.

List<String> otherMails()

Get the otherMails property: The otherMails property.

MicrosoftGraphOutlookUser outlook()

Get the outlook property: outlookUser.

List<MicrosoftGraphDirectoryObjectInner> ownedDevices()

Get the ownedDevices property: Devices that are owned by the user.

List<MicrosoftGraphDirectoryObjectInner> ownedObjects()

Get the ownedObjects property: Directory objects that are owned by the user.

String passwordPolicies()

Get the passwordPolicies property: The passwordPolicies property.

MicrosoftGraphPasswordProfile passwordProfile()

Get the passwordProfile property: passwordProfile.

List<String> pastProjects()

Get the pastProjects property: A list for the user to enumerate their past projects.

List<MicrosoftGraphPerson> people()

Get the people property: People that are relevant to the user.

MicrosoftGraphProfilePhoto photo()

Get the photo property: profilePhoto.

List<MicrosoftGraphProfilePhoto> photos()

Get the photos property: The photos property.

MicrosoftGraphPlannerUser planner()

Get the planner property: plannerUser.

String postalCode()

Get the postalCode property: The postal code for the user's postal address.

String preferredLanguage()

Get the preferredLanguage property: The preferred language for the user.

String preferredName()

Get the preferredName property: The preferred name for the user.

MicrosoftGraphPresence presence()

Get the presence property: presence.

List<MicrosoftGraphProvisionedPlan> provisionedPlans()

Get the provisionedPlans property: The plans that are provisioned for the user.

List<String> proxyAddresses()

Get the proxyAddresses property: The proxyAddresses property.

List<MicrosoftGraphDirectoryObjectInner> registeredDevices()

Get the registeredDevices property: Devices that are registered for the user.

List<String> responsibilities()

Get the responsibilities property: A list for the user to enumerate their responsibilities.

List<String> schools()

Get the schools property: A list for the user to enumerate the schools they have attended.

List<MicrosoftGraphScopedRoleMembership> scopedRoleMemberOf()

Get the scopedRoleMemberOf property: The scopedRoleMemberOf property.

MicrosoftGraphUserSettings settings()

Get the settings property: userSettings.

Boolean showInAddressList()

Get the showInAddressList property: true if the Outlook global address list should contain this user, otherwise false.

OffsetDateTime signInSessionsValidFromDateTime()

Get the signInSessionsValidFromDateTime property: Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph).

List<String> skills()

Get the skills property: A list for the user to enumerate their skills.

String state()

Get the state property: The state or province in the user's address.

String streetAddress()

Get the streetAddress property: The street address of the user's place of business.

String surname()

Get the surname property: The user's surname (family name or last name).

MicrosoftGraphUserTeamwork teamwork()

Get the teamwork property: userTeamwork.

JsonWriter toJson(JsonWriter jsonWriter)
MicrosoftGraphTodo todo()

Get the todo property: todo.

List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf()

Get the transitiveMemberOf property: The transitiveMemberOf property.

String usageLocation()

Get the usageLocation property: A two letter country code (ISO standard 3166).

String userPrincipalName()

Get the userPrincipalName property: The user principal name (UPN) of the user.

String userType()

Get the userType property: A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'.

void validate()

Validates the instance.

MicrosoftGraphUserInner withAboutMe(String aboutMe)

Set the aboutMe property: A freeform text entry field for the user to describe themselves.

MicrosoftGraphUserInner withAccountEnabled(Boolean accountEnabled)

Set the accountEnabled property: true if the account is enabled; otherwise, false.

MicrosoftGraphUserInner withActivities(List<MicrosoftGraphUserActivity> activities)

Set the activities property: The user's activities across devices.

MicrosoftGraphUserInner withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory user object.

MicrosoftGraphUserInner withAgeGroup(String ageGroup)

Set the ageGroup property: Sets the age group of the user.

MicrosoftGraphUserInner withAppRoleAssignments(List<MicrosoftGraphAppRoleAssignment> appRoleAssignments)

Set the appRoleAssignments property: The appRoleAssignments property.

MicrosoftGraphUserInner withAssignedLicenses(List<MicrosoftGraphAssignedLicense> assignedLicenses)

Set the assignedLicenses property: The licenses that are assigned to the user.

MicrosoftGraphUserInner withAssignedPlans(List<MicrosoftGraphAssignedPlan> assignedPlans)

Set the assignedPlans property: The plans that are assigned to the user.

MicrosoftGraphUserInner withBirthday(OffsetDateTime birthday)

Set the birthday property: The birthday of the user.

MicrosoftGraphUserInner withBusinessPhones(List<String> businessPhones)

Set the businessPhones property: The telephone numbers for the user.

MicrosoftGraphUserInner withCalendar(MicrosoftGraphCalendar calendar)

Set the calendar property: calendar.

MicrosoftGraphUserInner withCalendarGroups(List<MicrosoftGraphCalendarGroup> calendarGroups)

Set the calendarGroups property: The user's calendar groups.

MicrosoftGraphUserInner withCalendarView(List<MicrosoftGraphEvent> calendarView)

Set the calendarView property: The calendar view for the calendar.

MicrosoftGraphUserInner withCalendars(List<MicrosoftGraphCalendar> calendars)

Set the calendars property: The user's calendars.

MicrosoftGraphUserInner withCity(String city)

Set the city property: The city in which the user is located.

MicrosoftGraphUserInner withCompanyName(String companyName)

Set the companyName property: The company name which the user is associated.

MicrosoftGraphUserInner withConsentProvidedForMinor(String consentProvidedForMinor)

Set the consentProvidedForMinor property: Sets whether consent has been obtained for minors.

MicrosoftGraphUserInner withContactFolders(List<MicrosoftGraphContactFolder> contactFolders)

Set the contactFolders property: The user's contacts folders.

MicrosoftGraphUserInner withContacts(List<MicrosoftGraphContact> contacts)

Set the contacts property: The user's contacts.

MicrosoftGraphUserInner withCountry(String country)

Set the country property: The country/region in which the user is located; for example, 'US' or 'UK'.

MicrosoftGraphUserInner withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The created date of the user object.

MicrosoftGraphUserInner withCreatedObjects(List<MicrosoftGraphDirectoryObjectInner> createdObjects)

Set the createdObjects property: Directory objects that were created by the user.

MicrosoftGraphUserInner withCreationType(String creationType)

Set the creationType property: Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified).

MicrosoftGraphUserInner withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphUserInner withDepartment(String department)

Set the department property: The name for the department in which the user works.

MicrosoftGraphUserInner withDeviceEnrollmentLimit(Integer deviceEnrollmentLimit)

Set the deviceEnrollmentLimit property: The limit on the maximum number of devices that the user is permitted to enroll.

MicrosoftGraphUserInner withDeviceManagementTroubleshootingEvents(List<MicrosoftGraphDeviceManagementTroubleshootingEvent> deviceManagementTroubleshootingEvents)

Set the deviceManagementTroubleshootingEvents property: The list of troubleshooting events for this user.

MicrosoftGraphUserInner withDirectReports(List<MicrosoftGraphDirectoryObjectInner> directReports)

Set the directReports property: The users and contacts that report to the user.

MicrosoftGraphUserInner withDisplayName(String displayName)

Set the displayName property: The name displayed in the address book for the user.

MicrosoftGraphUserInner withDrive(MicrosoftGraphDrive drive)

Set the drive property: drive.

MicrosoftGraphUserInner withDrives(List<MicrosoftGraphDrive> drives)

Set the drives property: A collection of drives available for this user.

MicrosoftGraphUserInner withEmployeeHireDate(OffsetDateTime employeeHireDate)

Set the employeeHireDate property: The date and time when the user was hired or will start work in case of a future hire.

MicrosoftGraphUserInner withEmployeeId(String employeeId)

Set the employeeId property: The employee identifier assigned to the user by the organization.

MicrosoftGraphUserInner withEmployeeOrgData(MicrosoftGraphEmployeeOrgData employeeOrgData)

Set the employeeOrgData property: employeeOrgData.

MicrosoftGraphUserInner withEmployeeType(String employeeType)

Set the employeeType property: Captures enterprise worker type: Employee, Contractor, Consultant, Vendor, etc.

MicrosoftGraphUserInner withEvents(List<MicrosoftGraphEvent> events)

Set the events property: The user's events.

MicrosoftGraphUserInner withExtensions(List<MicrosoftGraphExtension> extensions)

Set the extensions property: The collection of open extensions defined for the user.

MicrosoftGraphUserInner withExternalUserState(String externalUserState)

Set the externalUserState property: The externalUserState property.

MicrosoftGraphUserInner withExternalUserStateChangeDateTime(OffsetDateTime externalUserStateChangeDateTime)

Set the externalUserStateChangeDateTime property: Shows the timestamp for the latest change to the externalUserState property.

MicrosoftGraphUserInner withFaxNumber(String faxNumber)

Set the faxNumber property: The fax number of the user.

MicrosoftGraphUserInner withFollowedSites(List<MicrosoftGraphSite> followedSites)

Set the followedSites property: The followedSites property.

MicrosoftGraphUserInner withGivenName(String givenName)

Set the givenName property: The given name (first name) of the user.

MicrosoftGraphUserInner withHireDate(OffsetDateTime hireDate)

Set the hireDate property: The hire date of the user.

MicrosoftGraphUserInner withId(String id)

Set the id property: Read-only.

MicrosoftGraphUserInner withIdentities(List<MicrosoftGraphObjectIdentity> identities)

Set the identities property: Represents the identities that can be used to sign in to this user account.

MicrosoftGraphUserInner withImAddresses(List<String> imAddresses)

Set the imAddresses property: The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user.

MicrosoftGraphUserInner withInferenceClassification(MicrosoftGraphInferenceClassification inferenceClassification)

Set the inferenceClassification property: inferenceClassification.

MicrosoftGraphUserInner withInsights(MicrosoftGraphOfficeGraphInsights insights)

Set the insights property: officeGraphInsights.

MicrosoftGraphUserInner withInterests(List<String> interests)

Set the interests property: A list for the user to describe their interests.

MicrosoftGraphUserInner withIsResourceAccount(Boolean isResourceAccount)

Set the isResourceAccount property: Do not use \u2013 reserved for future use.

MicrosoftGraphUserInner withJobTitle(String jobTitle)

Set the jobTitle property: The user's job title.

MicrosoftGraphUserInner withJoinedTeams(List<MicrosoftGraphTeamInner> joinedTeams)

Set the joinedTeams property: The joinedTeams property.

MicrosoftGraphUserInner withLastPasswordChangeDateTime(OffsetDateTime lastPasswordChangeDateTime)

Set the lastPasswordChangeDateTime property: The time when this Azure AD user last changed their password.

MicrosoftGraphUserInner withLegalAgeGroupClassification(String legalAgeGroupClassification)

Set the legalAgeGroupClassification property: Used by enterprise applications to determine the legal age group of the user.

MicrosoftGraphUserInner withLicenseAssignmentStates(List<MicrosoftGraphLicenseAssignmentState> licenseAssignmentStates)

Set the licenseAssignmentStates property: State of license assignments for this user.

MicrosoftGraphUserInner withLicenseDetails(List<MicrosoftGraphLicenseDetails> licenseDetails)

Set the licenseDetails property: A collection of this user's license details.

MicrosoftGraphUserInner withMail(String mail)

Set the mail property: The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'.

MicrosoftGraphUserInner withMailFolders(List<MicrosoftGraphMailFolder> mailFolders)

Set the mailFolders property: The user's mail folders.

MicrosoftGraphUserInner withMailNickname(String mailNickname)

Set the mailNickname property: The mail alias for the user.

MicrosoftGraphUserInner withMailboxSettings(MicrosoftGraphMailboxSettings mailboxSettings)

Set the mailboxSettings property: mailboxSettings.

MicrosoftGraphUserInner withManagedAppRegistrations(List<MicrosoftGraphManagedAppRegistration> managedAppRegistrations)

Set the managedAppRegistrations property: Zero or more managed app registrations that belong to the user.

MicrosoftGraphUserInner withManagedDevices(List<MicrosoftGraphManagedDevice> managedDevices)

Set the managedDevices property: The managed devices associated with the user.

MicrosoftGraphUserInner withManager(MicrosoftGraphDirectoryObjectInner manager)

Set the manager property: Represents an Azure Active Directory object.

MicrosoftGraphUserInner withMemberOf(List<MicrosoftGraphDirectoryObjectInner> memberOf)

Set the memberOf property: The groups and directory roles that the user is a member of.

MicrosoftGraphUserInner withMessages(List<MicrosoftGraphMessage> messages)

Set the messages property: The messages in a mailbox or folder.

MicrosoftGraphUserInner withMobilePhone(String mobilePhone)

Set the mobilePhone property: The primary cellular telephone number for the user.

MicrosoftGraphUserInner withMySite(String mySite)

Set the mySite property: The URL for the user's personal site.

MicrosoftGraphUserInner withOauth2PermissionGrants(List<MicrosoftGraphOAuth2PermissionGrant> oauth2PermissionGrants)

Set the oauth2PermissionGrants property: The oauth2PermissionGrants property.

MicrosoftGraphUserInner withOfficeLocation(String officeLocation)

Set the officeLocation property: The office location in the user's place of business.

MicrosoftGraphUserInner withOnPremisesDistinguishedName(String onPremisesDistinguishedName)

Set the onPremisesDistinguishedName property: Contains the on-premises Active Directory distinguished name or DN.

MicrosoftGraphUserInner withOnPremisesDomainName(String onPremisesDomainName)

Set the onPremisesDomainName property: Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory.

MicrosoftGraphUserInner withOnPremisesExtensionAttributes(MicrosoftGraphOnPremisesExtensionAttributes onPremisesExtensionAttributes)

Set the onPremisesExtensionAttributes property: onPremisesExtensionAttributes.

MicrosoftGraphUserInner withOnPremisesImmutableId(String onPremisesImmutableId)

Set the onPremisesImmutableId property: This property is used to associate an on-premises Active Directory user account to their Azure AD user object.

MicrosoftGraphUserInner withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime)

Set the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.

MicrosoftGraphUserInner withOnPremisesProvisioningErrors(List<MicrosoftGraphOnPremisesProvisioningError> onPremisesProvisioningErrors)

Set the onPremisesProvisioningErrors property: Errors when using Microsoft synchronization product during provisioning.

MicrosoftGraphUserInner withOnPremisesSamAccountName(String onPremisesSamAccountName)

Set the onPremisesSamAccountName property: Contains the on-premises samAccountName synchronized from the on-premises directory.

MicrosoftGraphUserInner withOnPremisesSecurityIdentifier(String onPremisesSecurityIdentifier)

Set the onPremisesSecurityIdentifier property: Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud.

MicrosoftGraphUserInner withOnPremisesSyncEnabled(Boolean onPremisesSyncEnabled)

Set the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default).

MicrosoftGraphUserInner withOnPremisesUserPrincipalName(String onPremisesUserPrincipalName)

Set the onPremisesUserPrincipalName property: Contains the on-premises userPrincipalName synchronized from the on-premises directory.

MicrosoftGraphUserInner withOnenote(MicrosoftGraphOnenote onenote)

Set the onenote property: onenote.

MicrosoftGraphUserInner withOnlineMeetings(List<MicrosoftGraphOnlineMeeting> onlineMeetings)

Set the onlineMeetings property: The onlineMeetings property.

MicrosoftGraphUserInner withOtherMails(List<String> otherMails)

Set the otherMails property: The otherMails property.

MicrosoftGraphUserInner withOutlook(MicrosoftGraphOutlookUser outlook)

Set the outlook property: outlookUser.

MicrosoftGraphUserInner withOwnedDevices(List<MicrosoftGraphDirectoryObjectInner> ownedDevices)

Set the ownedDevices property: Devices that are owned by the user.

MicrosoftGraphUserInner withOwnedObjects(List<MicrosoftGraphDirectoryObjectInner> ownedObjects)

Set the ownedObjects property: Directory objects that are owned by the user.

MicrosoftGraphUserInner withPasswordPolicies(String passwordPolicies)

Set the passwordPolicies property: The passwordPolicies property.

MicrosoftGraphUserInner withPasswordProfile(MicrosoftGraphPasswordProfile passwordProfile)

Set the passwordProfile property: passwordProfile.

MicrosoftGraphUserInner withPastProjects(List<String> pastProjects)

Set the pastProjects property: A list for the user to enumerate their past projects.

MicrosoftGraphUserInner withPeople(List<MicrosoftGraphPerson> people)

Set the people property: People that are relevant to the user.

MicrosoftGraphUserInner withPhoto(MicrosoftGraphProfilePhoto photo)

Set the photo property: profilePhoto.

MicrosoftGraphUserInner withPhotos(List<MicrosoftGraphProfilePhoto> photos)

Set the photos property: The photos property.

MicrosoftGraphUserInner withPlanner(MicrosoftGraphPlannerUser planner)

Set the planner property: plannerUser.

MicrosoftGraphUserInner withPostalCode(String postalCode)

Set the postalCode property: The postal code for the user's postal address.

MicrosoftGraphUserInner withPreferredLanguage(String preferredLanguage)

Set the preferredLanguage property: The preferred language for the user.

MicrosoftGraphUserInner withPreferredName(String preferredName)

Set the preferredName property: The preferred name for the user.

MicrosoftGraphUserInner withPresence(MicrosoftGraphPresence presence)

Set the presence property: presence.

MicrosoftGraphUserInner withProvisionedPlans(List<MicrosoftGraphProvisionedPlan> provisionedPlans)

Set the provisionedPlans property: The plans that are provisioned for the user.

MicrosoftGraphUserInner withProxyAddresses(List<String> proxyAddresses)

Set the proxyAddresses property: The proxyAddresses property.

MicrosoftGraphUserInner withRegisteredDevices(List<MicrosoftGraphDirectoryObjectInner> registeredDevices)

Set the registeredDevices property: Devices that are registered for the user.

MicrosoftGraphUserInner withResponsibilities(List<String> responsibilities)

Set the responsibilities property: A list for the user to enumerate their responsibilities.

MicrosoftGraphUserInner withSchools(List<String> schools)

Set the schools property: A list for the user to enumerate the schools they have attended.

MicrosoftGraphUserInner withScopedRoleMemberOf(List<MicrosoftGraphScopedRoleMembership> scopedRoleMemberOf)

Set the scopedRoleMemberOf property: The scopedRoleMemberOf property.

MicrosoftGraphUserInner withSettings(MicrosoftGraphUserSettings settings)

Set the settings property: userSettings.

MicrosoftGraphUserInner withShowInAddressList(Boolean showInAddressList)

Set the showInAddressList property: true if the Outlook global address list should contain this user, otherwise false.

MicrosoftGraphUserInner withSignInSessionsValidFromDateTime(OffsetDateTime signInSessionsValidFromDateTime)

Set the signInSessionsValidFromDateTime property: Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph).

MicrosoftGraphUserInner withSkills(List<String> skills)

Set the skills property: A list for the user to enumerate their skills.

MicrosoftGraphUserInner withState(String state)

Set the state property: The state or province in the user's address.

MicrosoftGraphUserInner withStreetAddress(String streetAddress)

Set the streetAddress property: The street address of the user's place of business.

MicrosoftGraphUserInner withSurname(String surname)

Set the surname property: The user's surname (family name or last name).

MicrosoftGraphUserInner withTeamwork(MicrosoftGraphUserTeamwork teamwork)

Set the teamwork property: userTeamwork.

MicrosoftGraphUserInner withTodo(MicrosoftGraphTodo todo)

Set the todo property: todo.

MicrosoftGraphUserInner withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf)

Set the transitiveMemberOf property: The transitiveMemberOf property.

MicrosoftGraphUserInner withUsageLocation(String usageLocation)

Set the usageLocation property: A two letter country code (ISO standard 3166).

MicrosoftGraphUserInner withUserPrincipalName(String userPrincipalName)

Set the userPrincipalName property: The user principal name (UPN) of the user.

MicrosoftGraphUserInner withUserType(String userType)

Set the userType property: A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'.

Methods inherited from MicrosoftGraphDirectoryObjectInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphUserInner

public MicrosoftGraphUserInner()

Creates an instance of MicrosoftGraphUserInner class.

Method Details

aboutMe

public String aboutMe()

Get the aboutMe property: A freeform text entry field for the user to describe themselves.

Returns:

the aboutMe value.

accountEnabled

public Boolean accountEnabled()

Get the accountEnabled property: true if the account is enabled; otherwise, false. This property is required when a user is created. Supports $filter.

Returns:

the accountEnabled value.

activities

public List activities()

Get the activities property: The user's activities across devices. Read-only. Nullable.

Returns:

the activities value.

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Represents an Azure Active Directory user object.

Overrides:

MicrosoftGraphUserInner.additionalProperties()

Returns:

the additionalProperties value.

ageGroup

public String ageGroup()

Get the ageGroup property: Sets the age group of the user. Allowed values: null, minor, notAdult and adult. Refer to the legal age group property definitions for further information.

Returns:

the ageGroup value.

appRoleAssignments

public List appRoleAssignments()

Get the appRoleAssignments property: The appRoleAssignments property.

Returns:

the appRoleAssignments value.

assignedLicenses

public List assignedLicenses()

Get the assignedLicenses property: The licenses that are assigned to the user. Not nullable.

Returns:

the assignedLicenses value.

assignedPlans

public List assignedPlans()

Get the assignedPlans property: The plans that are assigned to the user. Read-only. Not nullable.

Returns:

the assignedPlans value.

birthday

public OffsetDateTime birthday()

Get the birthday property: The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Returns:

the birthday value.

businessPhones

public List businessPhones()

Get the businessPhones property: The telephone numbers for the user. NOTE: Although this is a string collection, only one number can be set for this property. Read-only for users synced from on-premises directory.

Returns:

the businessPhones value.

calendar

public MicrosoftGraphCalendar calendar()

Get the calendar property: calendar.

Returns:

the calendar value.

calendarGroups

public List calendarGroups()

Get the calendarGroups property: The user's calendar groups. Read-only. Nullable.

Returns:

the calendarGroups value.

calendarView

public List calendarView()

Get the calendarView property: The calendar view for the calendar. Read-only. Nullable.

Returns:

the calendarView value.

calendars

public List calendars()

Get the calendars property: The user's calendars. Read-only. Nullable.

Returns:

the calendars value.

city

public String city()

Get the city property: The city in which the user is located. Supports $filter.

Returns:

the city value.

companyName

public String companyName()

Get the companyName property: The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length of the company name is 64 chararcters.Returned only on $select.

Returns:

the companyName value.

consentProvidedForMinor

public String consentProvidedForMinor()

Get the consentProvidedForMinor property: Sets whether consent has been obtained for minors. Allowed values: null, granted, denied and notRequired. Refer to the legal age group property definitions for further information.

Returns:

the consentProvidedForMinor value.

contactFolders

public List contactFolders()

Get the contactFolders property: The user's contacts folders. Read-only. Nullable.

Returns:

the contactFolders value.

contacts

public List contacts()

Get the contacts property: The user's contacts. Read-only. Nullable.

Returns:

the contacts value.

country

public String country()

Get the country property: The country/region in which the user is located; for example, 'US' or 'UK'. Supports $filter.

Returns:

the country value.

createdDateTime

public OffsetDateTime createdDateTime()

Get the createdDateTime property: The created date of the user object.

Returns:

the createdDateTime value.

createdObjects

public List createdObjects()

Get the createdObjects property: Directory objects that were created by the user. Read-only. Nullable.

Returns:

the createdObjects value.

creationType

public String creationType()

Get the creationType property: Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified). Read-only.

Returns:

the creationType value.

department

public String department()

Get the department property: The name for the department in which the user works. Supports $filter.

Returns:

the department value.

deviceEnrollmentLimit

public Integer deviceEnrollmentLimit()

Get the deviceEnrollmentLimit property: The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.

Returns:

the deviceEnrollmentLimit value.

deviceManagementTroubleshootingEvents

public List deviceManagementTroubleshootingEvents()

Get the deviceManagementTroubleshootingEvents property: The list of troubleshooting events for this user.

Returns:

the deviceManagementTroubleshootingEvents value.

directReports

public List directReports()

Get the directReports property: 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.

Returns:

the directReports value.

displayName

public String displayName()

Get the displayName property: The name displayed in the address book for the user. This is usually the combination of the user's first name, middle initial and last name. This property is required when a user is created and it cannot be cleared during updates. Supports $filter and $orderby.

Returns:

the displayName value.

drive

public MicrosoftGraphDrive drive()

Get the drive property: drive.

Returns:

the drive value.

drives

public List drives()

Get the drives property: A collection of drives available for this user. Read-only.

Returns:

the drives value.

employeeHireDate

public OffsetDateTime employeeHireDate()

Get the employeeHireDate property: The date and time when the user was hired or will start work in case of a future hire. Returned only on $select. Supports $filter.

Returns:

the employeeHireDate value.

employeeId

public String employeeId()

Get the employeeId property: The employee identifier assigned to the user by the organization. Returned only on $select. Supports $filter.

Returns:

the employeeId value.

employeeOrgData

public MicrosoftGraphEmployeeOrgData employeeOrgData()

Get the employeeOrgData property: employeeOrgData.

Returns:

the employeeOrgData value.

employeeType

public String employeeType()

Get the employeeType property: Captures enterprise worker type: Employee, Contractor, Consultant, Vendor, etc. Returned only on $select. Supports $filter.

Returns:

the employeeType value.

events

public List events()

Get the events property: The user's events. Default is to show Events under the Default Calendar. Read-only. Nullable.

Returns:

the events value.

extensions

public List extensions()

Get the extensions property: The collection of open extensions defined for the user. Read-only. Nullable.

Returns:

the extensions value.

externalUserState

public String externalUserState()

Get the externalUserState property: The externalUserState property.

Returns:

the externalUserState value.

externalUserStateChangeDateTime

public OffsetDateTime externalUserStateChangeDateTime()

Get the externalUserStateChangeDateTime property: Shows the timestamp for the latest change to the externalUserState property. Returned only on $select.

Returns:

the externalUserStateChangeDateTime value.

faxNumber

public String faxNumber()

Get the faxNumber property: The fax number of the user.

Returns:

the faxNumber value.

followedSites

public List followedSites()

Get the followedSites property: The followedSites property.

Returns:

the followedSites value.

fromJson

public static MicrosoftGraphUserInner fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphUserInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphUserInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphUserInner.

givenName

public String givenName()

Get the givenName property: The given name (first name) of the user. Supports $filter.

Returns:

the givenName value.

hireDate

public OffsetDateTime hireDate()

Get the hireDate property: The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned only on $select. Note: This property is specific to SharePoint Online. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs.

Returns:

the hireDate value.

identities

public List identities()

Get the identities property: Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and tied to a user account. May contain multiple items with the same signInType value. Supports $filter.

Returns:

the identities value.

imAddresses

public List imAddresses()

Get the imAddresses property: The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only.

Returns:

the imAddresses value.

inferenceClassification

public MicrosoftGraphInferenceClassification inferenceClassification()

Get the inferenceClassification property: inferenceClassification.

Returns:

the inferenceClassification value.

insights

public MicrosoftGraphOfficeGraphInsights insights()

Get the insights property: officeGraphInsights.

Returns:

the insights value.

interests

public List interests()

Get the interests property: A list for the user to describe their interests.

Returns:

the interests value.

isResourceAccount

public Boolean isResourceAccount()

Get the isResourceAccount property: Do not use \u2013 reserved for future use.

Returns:

the isResourceAccount value.

jobTitle

public String jobTitle()

Get the jobTitle property: The user's job title. Supports $filter.

Returns:

the jobTitle value.

joinedTeams

public List joinedTeams()

Get the joinedTeams property: The joinedTeams property.

Returns:

the joinedTeams value.

lastPasswordChangeDateTime

public OffsetDateTime lastPasswordChangeDateTime()

Get the lastPasswordChangeDateTime property: The time when this Azure AD user last changed their password. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Returns:

the lastPasswordChangeDateTime value.

legalAgeGroupClassification

public String legalAgeGroupClassification()

Get the legalAgeGroupClassification property: 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, minorWithOutParentalConsent, minorWithParentalConsent, minorNoParentalConsentRequired, notAdult and adult. Refer to the legal age group property definitions for further information.

Returns:

the legalAgeGroupClassification value.

licenseAssignmentStates

public List licenseAssignmentStates()

Get the licenseAssignmentStates property: State of license assignments for this user. Read-only.

Returns:

the licenseAssignmentStates value.

licenseDetails

public List licenseDetails()

Get the licenseDetails property: A collection of this user's license details. Read-only.

Returns:

the licenseDetails value.

mail

public String mail()

Get the mail property: The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'. Supports $filter.

Returns:

the mail value.

mailFolders

public List mailFolders()

Get the mailFolders property: The user's mail folders. Read-only. Nullable.

Returns:

the mailFolders value.

mailNickname

public String mailNickname()

Get the mailNickname property: The mail alias for the user. This property must be specified when a user is created. Supports $filter.

Returns:

the mailNickname value.

mailboxSettings

public MicrosoftGraphMailboxSettings mailboxSettings()

Get the mailboxSettings property: mailboxSettings.

Returns:

the mailboxSettings value.

managedAppRegistrations

public List managedAppRegistrations()

Get the managedAppRegistrations property: Zero or more managed app registrations that belong to the user.

Returns:

the managedAppRegistrations value.

managedDevices

public List managedDevices()

Get the managedDevices property: The managed devices associated with the user.

Returns:

the managedDevices value.

manager

public MicrosoftGraphDirectoryObjectInner manager()

Get the manager property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Returns:

the manager value.

memberOf

public List memberOf()

Get the memberOf property: The groups and directory roles that the user is a member of. Read-only. Nullable.

Returns:

the memberOf value.

messages

public List messages()

Get the messages property: The messages in a mailbox or folder. Read-only. Nullable.

Returns:

the messages value.

mobilePhone

public String mobilePhone()

Get the mobilePhone property: The primary cellular telephone number for the user. Read-only for users synced from on-premises directory.

Returns:

the mobilePhone value.

mySite

public String mySite()

Get the mySite property: The URL for the user's personal site.

Returns:

the mySite value.

oauth2PermissionGrants

public List oauth2PermissionGrants()

Get the oauth2PermissionGrants property: The oauth2PermissionGrants property.

Returns:

the oauth2PermissionGrants value.

officeLocation

public String officeLocation()

Get the officeLocation property: The office location in the user's place of business.

Returns:

the officeLocation value.

onPremisesDistinguishedName

public String onPremisesDistinguishedName()

Get the onPremisesDistinguishedName property: 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 Azure Active Directory via Azure AD Connect. Read-only.

Returns:

the onPremisesDistinguishedName value.

onPremisesDomainName

public String onPremisesDomainName()

Get the onPremisesDomainName property: 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 Azure Active Directory via Azure AD Connect. Read-only.

Returns:

the onPremisesDomainName value.

onPremisesExtensionAttributes

public MicrosoftGraphOnPremisesExtensionAttributes onPremisesExtensionAttributes()

Get the onPremisesExtensionAttributes property: onPremisesExtensionAttributes.

Returns:

the onPremisesExtensionAttributes value.

onPremisesImmutableId

public String onPremisesImmutableId()

Get the onPremisesImmutableId property: This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property. Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.

Returns:

the onPremisesImmutableId value.

onPremisesLastSyncDateTime

public OffsetDateTime onPremisesLastSyncDateTime()

Get the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.

Returns:

the onPremisesLastSyncDateTime value.

onPremisesProvisioningErrors

public List onPremisesProvisioningErrors()

Get the onPremisesProvisioningErrors property: Errors when using Microsoft synchronization product during provisioning.

Returns:

the onPremisesProvisioningErrors value.

onPremisesSamAccountName

public String onPremisesSamAccountName()

Get the onPremisesSamAccountName property: 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 Azure Active Directory via Azure AD Connect. Read-only.

Returns:

the onPremisesSamAccountName value.

onPremisesSecurityIdentifier

public String onPremisesSecurityIdentifier()

Get the onPremisesSecurityIdentifier property: Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only.

Returns:

the onPremisesSecurityIdentifier value.

onPremisesSyncEnabled

public Boolean onPremisesSyncEnabled()

Get the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only.

Returns:

the onPremisesSyncEnabled value.

onPremisesUserPrincipalName

public String onPremisesUserPrincipalName()

Get the onPremisesUserPrincipalName property: 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 Azure Active Directory via Azure AD Connect. Read-only.

Returns:

the onPremisesUserPrincipalName value.

onenote

public MicrosoftGraphOnenote onenote()

Get the onenote property: onenote.

Returns:

the onenote value.

onlineMeetings

public List onlineMeetings()

Get the onlineMeetings property: The onlineMeetings property.

Returns:

the onlineMeetings value.

otherMails

public List otherMails()

Get the otherMails property: The otherMails property.

Returns:

the otherMails value.

outlook

public MicrosoftGraphOutlookUser outlook()

Get the outlook property: outlookUser.

Returns:

the outlook value.

ownedDevices

public List ownedDevices()

Get the ownedDevices property: Devices that are owned by the user. Read-only. Nullable.

Returns:

the ownedDevices value.

ownedObjects

public List ownedObjects()

Get the ownedObjects property: Directory objects that are owned by the user. Read-only. Nullable.

Returns:

the ownedObjects value.

passwordPolicies

public String passwordPolicies()

Get the passwordPolicies property: The passwordPolicies property.

Returns:

the passwordPolicies value.

passwordProfile

public MicrosoftGraphPasswordProfile passwordProfile()

Get the passwordProfile property: passwordProfile.

Returns:

the passwordProfile value.

pastProjects

public List pastProjects()

Get the pastProjects property: A list for the user to enumerate their past projects.

Returns:

the pastProjects value.

people

public List people()

Get the people property: People that are relevant to the user. Read-only. Nullable.

Returns:

the people value.

photo

public MicrosoftGraphProfilePhoto photo()

Get the photo property: profilePhoto.

Returns:

the photo value.

photos

public List photos()

Get the photos property: The photos property.

Returns:

the photos value.

planner

public MicrosoftGraphPlannerUser planner()

Get the planner property: plannerUser.

Returns:

the planner value.

postalCode

public String postalCode()

Get the postalCode property: The postal code for the user's postal address. The postal code is specific to the user's country/region. In the United States of America, this attribute contains the ZIP code.

Returns:

the postalCode value.

preferredLanguage

public String preferredLanguage()

Get the preferredLanguage property: The preferred language for the user. Should follow ISO 639-1 Code; for example 'en-US'.

Returns:

the preferredLanguage value.

preferredName

public String preferredName()

Get the preferredName property: The preferred name for the user.

Returns:

the preferredName value.

presence

public MicrosoftGraphPresence presence()

Get the presence property: presence.

Returns:

the presence value.

provisionedPlans

public List provisionedPlans()

Get the provisionedPlans property: The plans that are provisioned for the user. Read-only. Not nullable.

Returns:

the provisionedPlans value.

proxyAddresses

public List proxyAddresses()

Get the proxyAddresses property: The proxyAddresses property.

Returns:

the proxyAddresses value.

registeredDevices

public List registeredDevices()

Get the registeredDevices property: Devices that are registered for the user. Read-only. Nullable.

Returns:

the registeredDevices value.

responsibilities

public List responsibilities()

Get the responsibilities property: A list for the user to enumerate their responsibilities.

Returns:

the responsibilities value.

schools

public List schools()

Get the schools property: A list for the user to enumerate the schools they have attended.

Returns:

the schools value.

scopedRoleMemberOf

public List scopedRoleMemberOf()

Get the scopedRoleMemberOf property: The scopedRoleMemberOf property.

Returns:

the scopedRoleMemberOf value.

settings

public MicrosoftGraphUserSettings settings()

Get the settings property: userSettings.

Returns:

the settings value.

showInAddressList

public Boolean showInAddressList()

Get the showInAddressList property: true if the Outlook global address list should contain this user, otherwise false. If not set, this will be treated as true. For users invited through the invitation manager, this property will be set to false.

Returns:

the showInAddressList value.

signInSessionsValidFromDateTime

public OffsetDateTime signInSessionsValidFromDateTime()

Get the signInSessionsValidFromDateTime property: Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. Read-only. Use revokeSignInSessions to reset.

Returns:

the signInSessionsValidFromDateTime value.

skills

public List skills()

Get the skills property: A list for the user to enumerate their skills.

Returns:

the skills value.

state

public String state()

Get the state property: The state or province in the user's address. Supports $filter.

Returns:

the state value.

streetAddress

public String streetAddress()

Get the streetAddress property: The street address of the user's place of business.

Returns:

the streetAddress value.

surname

public String surname()

Get the surname property: The user's surname (family name or last name). Supports $filter.

Returns:

the surname value.

teamwork

public MicrosoftGraphUserTeamwork teamwork()

Get the teamwork property: userTeamwork.

Returns:

the teamwork value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphUserInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

todo

public MicrosoftGraphTodo todo()

Get the todo property: todo.

Returns:

the todo value.

transitiveMemberOf

public List transitiveMemberOf()

Get the transitiveMemberOf property: The transitiveMemberOf property.

Returns:

the transitiveMemberOf value.

usageLocation

public String usageLocation()

Get the usageLocation property: A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: 'US', 'JP', and 'GB'. Not nullable. Supports $filter.

Returns:

the usageLocation value.

userPrincipalName

public String userPrincipalName()

Get the userPrincipalName property: The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where 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. Supports $filter and $orderby.

Returns:

the userPrincipalName value.

userType

public String userType()

Get the userType property: A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Supports $filter.

Returns:

the userType value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphUserInner.validate()

withAboutMe

public MicrosoftGraphUserInner withAboutMe(String aboutMe)

Set the aboutMe property: A freeform text entry field for the user to describe themselves.

Parameters:

aboutMe - the aboutMe value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withAccountEnabled

public MicrosoftGraphUserInner withAccountEnabled(Boolean accountEnabled)

Set the accountEnabled property: true if the account is enabled; otherwise, false. This property is required when a user is created. Supports $filter.

Parameters:

accountEnabled - the accountEnabled value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withActivities

public MicrosoftGraphUserInner withActivities(List activities)

Set the activities property: The user's activities across devices. Read-only. Nullable.

Parameters:

activities - the activities value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withAdditionalProperties

public MicrosoftGraphUserInner withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory user object.

Overrides:

MicrosoftGraphUserInner.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withAgeGroup

public MicrosoftGraphUserInner withAgeGroup(String ageGroup)

Set the ageGroup property: Sets the age group of the user. Allowed values: null, minor, notAdult and adult. Refer to the legal age group property definitions for further information.

Parameters:

ageGroup - the ageGroup value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withAppRoleAssignments

public MicrosoftGraphUserInner withAppRoleAssignments(List appRoleAssignments)

Set the appRoleAssignments property: The appRoleAssignments property.

Parameters:

appRoleAssignments - the appRoleAssignments value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withAssignedLicenses

public MicrosoftGraphUserInner withAssignedLicenses(List assignedLicenses)

Set the assignedLicenses property: The licenses that are assigned to the user. Not nullable.

Parameters:

assignedLicenses - the assignedLicenses value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withAssignedPlans

public MicrosoftGraphUserInner withAssignedPlans(List assignedPlans)

Set the assignedPlans property: The plans that are assigned to the user. Read-only. Not nullable.

Parameters:

assignedPlans - the assignedPlans value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withBirthday

public MicrosoftGraphUserInner withBirthday(OffsetDateTime birthday)

Set the birthday property: The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Parameters:

birthday - the birthday value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withBusinessPhones

public MicrosoftGraphUserInner withBusinessPhones(List businessPhones)

Set the businessPhones property: The telephone numbers for the user. NOTE: Although this is a string collection, only one number can be set for this property. Read-only for users synced from on-premises directory.

Parameters:

businessPhones - the businessPhones value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withCalendar

public MicrosoftGraphUserInner withCalendar(MicrosoftGraphCalendar calendar)

Set the calendar property: calendar.

Parameters:

calendar - the calendar value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withCalendarGroups

public MicrosoftGraphUserInner withCalendarGroups(List calendarGroups)

Set the calendarGroups property: The user's calendar groups. Read-only. Nullable.

Parameters:

calendarGroups - the calendarGroups value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withCalendarView

public MicrosoftGraphUserInner withCalendarView(List calendarView)

Set the calendarView property: The calendar view for the calendar. Read-only. Nullable.

Parameters:

calendarView - the calendarView value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withCalendars

public MicrosoftGraphUserInner withCalendars(List calendars)

Set the calendars property: The user's calendars. Read-only. Nullable.

Parameters:

calendars - the calendars value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withCity

public MicrosoftGraphUserInner withCity(String city)

Set the city property: The city in which the user is located. Supports $filter.

Parameters:

city - the city value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withCompanyName

public MicrosoftGraphUserInner withCompanyName(String companyName)

Set the companyName property: The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length of the company name is 64 chararcters.Returned only on $select.

Parameters:

companyName - the companyName value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withConsentProvidedForMinor

public MicrosoftGraphUserInner withConsentProvidedForMinor(String consentProvidedForMinor)

Set the consentProvidedForMinor property: Sets whether consent has been obtained for minors. Allowed values: null, granted, denied and notRequired. Refer to the legal age group property definitions for further information.

Parameters:

consentProvidedForMinor - the consentProvidedForMinor value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withContactFolders

public MicrosoftGraphUserInner withContactFolders(List contactFolders)

Set the contactFolders property: The user's contacts folders. Read-only. Nullable.

Parameters:

contactFolders - the contactFolders value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withContacts

public MicrosoftGraphUserInner withContacts(List contacts)

Set the contacts property: The user's contacts. Read-only. Nullable.

Parameters:

contacts - the contacts value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withCountry

public MicrosoftGraphUserInner withCountry(String country)

Set the country property: The country/region in which the user is located; for example, 'US' or 'UK'. Supports $filter.

Parameters:

country - the country value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withCreatedDateTime

public MicrosoftGraphUserInner withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The created date of the user object.

Parameters:

createdDateTime - the createdDateTime value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withCreatedObjects

public MicrosoftGraphUserInner withCreatedObjects(List createdObjects)

Set the createdObjects property: Directory objects that were created by the user. Read-only. Nullable.

Parameters:

createdObjects - the createdObjects value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withCreationType

public MicrosoftGraphUserInner withCreationType(String creationType)

Set the creationType property: Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified). Read-only.

Parameters:

creationType - the creationType value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withDeletedDateTime

public MicrosoftGraphUserInner withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphUserInner.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withDepartment

public MicrosoftGraphUserInner withDepartment(String department)

Set the department property: The name for the department in which the user works. Supports $filter.

Parameters:

department - the department value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withDeviceEnrollmentLimit

public MicrosoftGraphUserInner withDeviceEnrollmentLimit(Integer deviceEnrollmentLimit)

Set the deviceEnrollmentLimit property: The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.

Parameters:

deviceEnrollmentLimit - the deviceEnrollmentLimit value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withDeviceManagementTroubleshootingEvents

public MicrosoftGraphUserInner withDeviceManagementTroubleshootingEvents(List deviceManagementTroubleshootingEvents)

Set the deviceManagementTroubleshootingEvents property: The list of troubleshooting events for this user.

Parameters:

deviceManagementTroubleshootingEvents - the deviceManagementTroubleshootingEvents value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withDirectReports

public MicrosoftGraphUserInner withDirectReports(List directReports)

Set the directReports property: 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.

Parameters:

directReports - the directReports value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withDisplayName

public MicrosoftGraphUserInner withDisplayName(String displayName)

Set the displayName property: The name displayed in the address book for the user. This is usually the combination of the user's first name, middle initial and last name. This property is required when a user is created and it cannot be cleared during updates. Supports $filter and $orderby.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withDrive

public MicrosoftGraphUserInner withDrive(MicrosoftGraphDrive drive)

Set the drive property: drive.

Parameters:

drive - the drive value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withDrives

public MicrosoftGraphUserInner withDrives(List drives)

Set the drives property: A collection of drives available for this user. Read-only.

Parameters:

drives - the drives value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withEmployeeHireDate

public MicrosoftGraphUserInner withEmployeeHireDate(OffsetDateTime employeeHireDate)

Set the employeeHireDate property: The date and time when the user was hired or will start work in case of a future hire. Returned only on $select. Supports $filter.

Parameters:

employeeHireDate - the employeeHireDate value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withEmployeeId

public MicrosoftGraphUserInner withEmployeeId(String employeeId)

Set the employeeId property: The employee identifier assigned to the user by the organization. Returned only on $select. Supports $filter.

Parameters:

employeeId - the employeeId value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withEmployeeOrgData

public MicrosoftGraphUserInner withEmployeeOrgData(MicrosoftGraphEmployeeOrgData employeeOrgData)

Set the employeeOrgData property: employeeOrgData.

Parameters:

employeeOrgData - the employeeOrgData value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withEmployeeType

public MicrosoftGraphUserInner withEmployeeType(String employeeType)

Set the employeeType property: Captures enterprise worker type: Employee, Contractor, Consultant, Vendor, etc. Returned only on $select. Supports $filter.

Parameters:

employeeType - the employeeType value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withEvents

public MicrosoftGraphUserInner withEvents(List events)

Set the events property: The user's events. Default is to show Events under the Default Calendar. Read-only. Nullable.

Parameters:

events - the events value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withExtensions

public MicrosoftGraphUserInner withExtensions(List extensions)

Set the extensions property: The collection of open extensions defined for the user. Read-only. Nullable.

Parameters:

extensions - the extensions value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withExternalUserState

public MicrosoftGraphUserInner withExternalUserState(String externalUserState)

Set the externalUserState property: The externalUserState property.

Parameters:

externalUserState - the externalUserState value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withExternalUserStateChangeDateTime

public MicrosoftGraphUserInner withExternalUserStateChangeDateTime(OffsetDateTime externalUserStateChangeDateTime)

Set the externalUserStateChangeDateTime property: Shows the timestamp for the latest change to the externalUserState property. Returned only on $select.

Parameters:

externalUserStateChangeDateTime - the externalUserStateChangeDateTime value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withFaxNumber

public MicrosoftGraphUserInner withFaxNumber(String faxNumber)

Set the faxNumber property: The fax number of the user.

Parameters:

faxNumber - the faxNumber value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withFollowedSites

public MicrosoftGraphUserInner withFollowedSites(List followedSites)

Set the followedSites property: The followedSites property.

Parameters:

followedSites - the followedSites value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withGivenName

public MicrosoftGraphUserInner withGivenName(String givenName)

Set the givenName property: The given name (first name) of the user. Supports $filter.

Parameters:

givenName - the givenName value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withHireDate

public MicrosoftGraphUserInner withHireDate(OffsetDateTime hireDate)

Set the hireDate property: The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned only on $select. Note: This property is specific to SharePoint Online. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs.

Parameters:

hireDate - the hireDate value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withId

public MicrosoftGraphUserInner withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphUserInner.withId(String id)

Parameters:

id

withIdentities

public MicrosoftGraphUserInner withIdentities(List identities)

Set the identities property: Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and tied to a user account. May contain multiple items with the same signInType value. Supports $filter.

Parameters:

identities - the identities value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withImAddresses

public MicrosoftGraphUserInner withImAddresses(List imAddresses)

Set the imAddresses property: The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only.

Parameters:

imAddresses - the imAddresses value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withInferenceClassification

public MicrosoftGraphUserInner withInferenceClassification(MicrosoftGraphInferenceClassification inferenceClassification)

Set the inferenceClassification property: inferenceClassification.

Parameters:

inferenceClassification - the inferenceClassification value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withInsights

public MicrosoftGraphUserInner withInsights(MicrosoftGraphOfficeGraphInsights insights)

Set the insights property: officeGraphInsights.

Parameters:

insights - the insights value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withInterests

public MicrosoftGraphUserInner withInterests(List interests)

Set the interests property: A list for the user to describe their interests.

Parameters:

interests - the interests value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withIsResourceAccount

public MicrosoftGraphUserInner withIsResourceAccount(Boolean isResourceAccount)

Set the isResourceAccount property: Do not use \u2013 reserved for future use.

Parameters:

isResourceAccount - the isResourceAccount value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withJobTitle

public MicrosoftGraphUserInner withJobTitle(String jobTitle)

Set the jobTitle property: The user's job title. Supports $filter.

Parameters:

jobTitle - the jobTitle value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withJoinedTeams

public MicrosoftGraphUserInner withJoinedTeams(List joinedTeams)

Set the joinedTeams property: The joinedTeams property.

Parameters:

joinedTeams - the joinedTeams value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withLastPasswordChangeDateTime

public MicrosoftGraphUserInner withLastPasswordChangeDateTime(OffsetDateTime lastPasswordChangeDateTime)

Set the lastPasswordChangeDateTime property: The time when this Azure AD user last changed their password. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Parameters:

lastPasswordChangeDateTime - the lastPasswordChangeDateTime value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withLegalAgeGroupClassification

public MicrosoftGraphUserInner withLegalAgeGroupClassification(String legalAgeGroupClassification)

Set the legalAgeGroupClassification property: 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, minorWithOutParentalConsent, minorWithParentalConsent, minorNoParentalConsentRequired, notAdult and adult. Refer to the legal age group property definitions for further information.

Parameters:

legalAgeGroupClassification - the legalAgeGroupClassification value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withLicenseAssignmentStates

public MicrosoftGraphUserInner withLicenseAssignmentStates(List licenseAssignmentStates)

Set the licenseAssignmentStates property: State of license assignments for this user. Read-only.

Parameters:

licenseAssignmentStates - the licenseAssignmentStates value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withLicenseDetails

public MicrosoftGraphUserInner withLicenseDetails(List licenseDetails)

Set the licenseDetails property: A collection of this user's license details. Read-only.

Parameters:

licenseDetails - the licenseDetails value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withMail

public MicrosoftGraphUserInner withMail(String mail)

Set the mail property: The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'. Supports $filter.

Parameters:

mail - the mail value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withMailFolders

public MicrosoftGraphUserInner withMailFolders(List mailFolders)

Set the mailFolders property: The user's mail folders. Read-only. Nullable.

Parameters:

mailFolders - the mailFolders value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withMailNickname

public MicrosoftGraphUserInner withMailNickname(String mailNickname)

Set the mailNickname property: The mail alias for the user. This property must be specified when a user is created. Supports $filter.

Parameters:

mailNickname - the mailNickname value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withMailboxSettings

public MicrosoftGraphUserInner withMailboxSettings(MicrosoftGraphMailboxSettings mailboxSettings)

Set the mailboxSettings property: mailboxSettings.

Parameters:

mailboxSettings - the mailboxSettings value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withManagedAppRegistrations

public MicrosoftGraphUserInner withManagedAppRegistrations(List managedAppRegistrations)

Set the managedAppRegistrations property: Zero or more managed app registrations that belong to the user.

Parameters:

managedAppRegistrations - the managedAppRegistrations value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withManagedDevices

public MicrosoftGraphUserInner withManagedDevices(List managedDevices)

Set the managedDevices property: The managed devices associated with the user.

Parameters:

managedDevices - the managedDevices value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withManager

public MicrosoftGraphUserInner withManager(MicrosoftGraphDirectoryObjectInner manager)

Set the manager property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Parameters:

manager - the manager value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withMemberOf

public MicrosoftGraphUserInner withMemberOf(List memberOf)

Set the memberOf property: The groups and directory roles that the user is a member of. Read-only. Nullable.

Parameters:

memberOf - the memberOf value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withMessages

public MicrosoftGraphUserInner withMessages(List messages)

Set the messages property: The messages in a mailbox or folder. Read-only. Nullable.

Parameters:

messages - the messages value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withMobilePhone

public MicrosoftGraphUserInner withMobilePhone(String mobilePhone)

Set the mobilePhone property: The primary cellular telephone number for the user. Read-only for users synced from on-premises directory.

Parameters:

mobilePhone - the mobilePhone value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withMySite

public MicrosoftGraphUserInner withMySite(String mySite)

Set the mySite property: The URL for the user's personal site.

Parameters:

mySite - the mySite value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOauth2PermissionGrants

public MicrosoftGraphUserInner withOauth2PermissionGrants(List oauth2PermissionGrants)

Set the oauth2PermissionGrants property: The oauth2PermissionGrants property.

Parameters:

oauth2PermissionGrants - the oauth2PermissionGrants value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOfficeLocation

public MicrosoftGraphUserInner withOfficeLocation(String officeLocation)

Set the officeLocation property: The office location in the user's place of business.

Parameters:

officeLocation - the officeLocation value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnPremisesDistinguishedName

public MicrosoftGraphUserInner withOnPremisesDistinguishedName(String onPremisesDistinguishedName)

Set the onPremisesDistinguishedName property: 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 Azure Active Directory via Azure AD Connect. Read-only.

Parameters:

onPremisesDistinguishedName - the onPremisesDistinguishedName value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnPremisesDomainName

public MicrosoftGraphUserInner withOnPremisesDomainName(String onPremisesDomainName)

Set the onPremisesDomainName property: 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 Azure Active Directory via Azure AD Connect. Read-only.

Parameters:

onPremisesDomainName - the onPremisesDomainName value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnPremisesExtensionAttributes

public MicrosoftGraphUserInner withOnPremisesExtensionAttributes(MicrosoftGraphOnPremisesExtensionAttributes onPremisesExtensionAttributes)

Set the onPremisesExtensionAttributes property: onPremisesExtensionAttributes.

Parameters:

onPremisesExtensionAttributes - the onPremisesExtensionAttributes value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnPremisesImmutableId

public MicrosoftGraphUserInner withOnPremisesImmutableId(String onPremisesImmutableId)

Set the onPremisesImmutableId property: This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property. Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.

Parameters:

onPremisesImmutableId - the onPremisesImmutableId value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnPremisesLastSyncDateTime

public MicrosoftGraphUserInner withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime)

Set the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.

Parameters:

onPremisesLastSyncDateTime - the onPremisesLastSyncDateTime value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnPremisesProvisioningErrors

public MicrosoftGraphUserInner withOnPremisesProvisioningErrors(List onPremisesProvisioningErrors)

Set the onPremisesProvisioningErrors property: Errors when using Microsoft synchronization product during provisioning.

Parameters:

onPremisesProvisioningErrors - the onPremisesProvisioningErrors value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnPremisesSamAccountName

public MicrosoftGraphUserInner withOnPremisesSamAccountName(String onPremisesSamAccountName)

Set the onPremisesSamAccountName property: 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 Azure Active Directory via Azure AD Connect. Read-only.

Parameters:

onPremisesSamAccountName - the onPremisesSamAccountName value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnPremisesSecurityIdentifier

public MicrosoftGraphUserInner withOnPremisesSecurityIdentifier(String onPremisesSecurityIdentifier)

Set the onPremisesSecurityIdentifier property: Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only.

Parameters:

onPremisesSecurityIdentifier - the onPremisesSecurityIdentifier value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnPremisesSyncEnabled

public MicrosoftGraphUserInner withOnPremisesSyncEnabled(Boolean onPremisesSyncEnabled)

Set the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only.

Parameters:

onPremisesSyncEnabled - the onPremisesSyncEnabled value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnPremisesUserPrincipalName

public MicrosoftGraphUserInner withOnPremisesUserPrincipalName(String onPremisesUserPrincipalName)

Set the onPremisesUserPrincipalName property: 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 Azure Active Directory via Azure AD Connect. Read-only.

Parameters:

onPremisesUserPrincipalName - the onPremisesUserPrincipalName value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnenote

public MicrosoftGraphUserInner withOnenote(MicrosoftGraphOnenote onenote)

Set the onenote property: onenote.

Parameters:

onenote - the onenote value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOnlineMeetings

public MicrosoftGraphUserInner withOnlineMeetings(List onlineMeetings)

Set the onlineMeetings property: The onlineMeetings property.

Parameters:

onlineMeetings - the onlineMeetings value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOtherMails

public MicrosoftGraphUserInner withOtherMails(List otherMails)

Set the otherMails property: The otherMails property.

Parameters:

otherMails - the otherMails value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOutlook

public MicrosoftGraphUserInner withOutlook(MicrosoftGraphOutlookUser outlook)

Set the outlook property: outlookUser.

Parameters:

outlook - the outlook value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOwnedDevices

public MicrosoftGraphUserInner withOwnedDevices(List ownedDevices)

Set the ownedDevices property: Devices that are owned by the user. Read-only. Nullable.

Parameters:

ownedDevices - the ownedDevices value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withOwnedObjects

public MicrosoftGraphUserInner withOwnedObjects(List ownedObjects)

Set the ownedObjects property: Directory objects that are owned by the user. Read-only. Nullable.

Parameters:

ownedObjects - the ownedObjects value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPasswordPolicies

public MicrosoftGraphUserInner withPasswordPolicies(String passwordPolicies)

Set the passwordPolicies property: The passwordPolicies property.

Parameters:

passwordPolicies - the passwordPolicies value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPasswordProfile

public MicrosoftGraphUserInner withPasswordProfile(MicrosoftGraphPasswordProfile passwordProfile)

Set the passwordProfile property: passwordProfile.

Parameters:

passwordProfile - the passwordProfile value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPastProjects

public MicrosoftGraphUserInner withPastProjects(List pastProjects)

Set the pastProjects property: A list for the user to enumerate their past projects.

Parameters:

pastProjects - the pastProjects value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPeople

public MicrosoftGraphUserInner withPeople(List people)

Set the people property: People that are relevant to the user. Read-only. Nullable.

Parameters:

people - the people value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPhoto

public MicrosoftGraphUserInner withPhoto(MicrosoftGraphProfilePhoto photo)

Set the photo property: profilePhoto.

Parameters:

photo - the photo value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPhotos

public MicrosoftGraphUserInner withPhotos(List photos)

Set the photos property: The photos property.

Parameters:

photos - the photos value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPlanner

public MicrosoftGraphUserInner withPlanner(MicrosoftGraphPlannerUser planner)

Set the planner property: plannerUser.

Parameters:

planner - the planner value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPostalCode

public MicrosoftGraphUserInner withPostalCode(String postalCode)

Set the postalCode property: The postal code for the user's postal address. The postal code is specific to the user's country/region. In the United States of America, this attribute contains the ZIP code.

Parameters:

postalCode - the postalCode value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPreferredLanguage

public MicrosoftGraphUserInner withPreferredLanguage(String preferredLanguage)

Set the preferredLanguage property: The preferred language for the user. Should follow ISO 639-1 Code; for example 'en-US'.

Parameters:

preferredLanguage - the preferredLanguage value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPreferredName

public MicrosoftGraphUserInner withPreferredName(String preferredName)

Set the preferredName property: The preferred name for the user.

Parameters:

preferredName - the preferredName value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withPresence

public MicrosoftGraphUserInner withPresence(MicrosoftGraphPresence presence)

Set the presence property: presence.

Parameters:

presence - the presence value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withProvisionedPlans

public MicrosoftGraphUserInner withProvisionedPlans(List provisionedPlans)

Set the provisionedPlans property: The plans that are provisioned for the user. Read-only. Not nullable.

Parameters:

provisionedPlans - the provisionedPlans value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withProxyAddresses

public MicrosoftGraphUserInner withProxyAddresses(List proxyAddresses)

Set the proxyAddresses property: The proxyAddresses property.

Parameters:

proxyAddresses - the proxyAddresses value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withRegisteredDevices

public MicrosoftGraphUserInner withRegisteredDevices(List registeredDevices)

Set the registeredDevices property: Devices that are registered for the user. Read-only. Nullable.

Parameters:

registeredDevices - the registeredDevices value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withResponsibilities

public MicrosoftGraphUserInner withResponsibilities(List responsibilities)

Set the responsibilities property: A list for the user to enumerate their responsibilities.

Parameters:

responsibilities - the responsibilities value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withSchools

public MicrosoftGraphUserInner withSchools(List schools)

Set the schools property: A list for the user to enumerate the schools they have attended.

Parameters:

schools - the schools value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withScopedRoleMemberOf

public MicrosoftGraphUserInner withScopedRoleMemberOf(List scopedRoleMemberOf)

Set the scopedRoleMemberOf property: The scopedRoleMemberOf property.

Parameters:

scopedRoleMemberOf - the scopedRoleMemberOf value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withSettings

public MicrosoftGraphUserInner withSettings(MicrosoftGraphUserSettings settings)

Set the settings property: userSettings.

Parameters:

settings - the settings value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withShowInAddressList

public MicrosoftGraphUserInner withShowInAddressList(Boolean showInAddressList)

Set the showInAddressList property: true if the Outlook global address list should contain this user, otherwise false. If not set, this will be treated as true. For users invited through the invitation manager, this property will be set to false.

Parameters:

showInAddressList - the showInAddressList value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withSignInSessionsValidFromDateTime

public MicrosoftGraphUserInner withSignInSessionsValidFromDateTime(OffsetDateTime signInSessionsValidFromDateTime)

Set the signInSessionsValidFromDateTime property: Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. Read-only. Use revokeSignInSessions to reset.

Parameters:

signInSessionsValidFromDateTime - the signInSessionsValidFromDateTime value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withSkills

public MicrosoftGraphUserInner withSkills(List skills)

Set the skills property: A list for the user to enumerate their skills.

Parameters:

skills - the skills value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withState

public MicrosoftGraphUserInner withState(String state)

Set the state property: The state or province in the user's address. Supports $filter.

Parameters:

state - the state value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withStreetAddress

public MicrosoftGraphUserInner withStreetAddress(String streetAddress)

Set the streetAddress property: The street address of the user's place of business.

Parameters:

streetAddress - the streetAddress value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withSurname

public MicrosoftGraphUserInner withSurname(String surname)

Set the surname property: The user's surname (family name or last name). Supports $filter.

Parameters:

surname - the surname value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withTeamwork

public MicrosoftGraphUserInner withTeamwork(MicrosoftGraphUserTeamwork teamwork)

Set the teamwork property: userTeamwork.

Parameters:

teamwork - the teamwork value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withTodo

public MicrosoftGraphUserInner withTodo(MicrosoftGraphTodo todo)

Set the todo property: todo.

Parameters:

todo - the todo value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withTransitiveMemberOf

public MicrosoftGraphUserInner withTransitiveMemberOf(List transitiveMemberOf)

Set the transitiveMemberOf property: The transitiveMemberOf property.

Parameters:

transitiveMemberOf - the transitiveMemberOf value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withUsageLocation

public MicrosoftGraphUserInner withUsageLocation(String usageLocation)

Set the usageLocation property: A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: 'US', 'JP', and 'GB'. Not nullable. Supports $filter.

Parameters:

usageLocation - the usageLocation value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withUserPrincipalName

public MicrosoftGraphUserInner withUserPrincipalName(String userPrincipalName)

Set the userPrincipalName property: The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where 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. Supports $filter and $orderby.

Parameters:

userPrincipalName - the userPrincipalName value to set.

Returns:

the MicrosoftGraphUserInner object itself.

withUserType

public MicrosoftGraphUserInner withUserType(String userType)

Set the userType property: A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Supports $filter.

Parameters:

userType - the userType value to set.

Returns:

the MicrosoftGraphUserInner object itself.

Applies to