Class MicrosoftGraphUserInner
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphUserInner
user
Represents an Azure Active Directory user object.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphUserInner class. -
Method Summary
Modifier and TypeMethodDescriptionaboutMe()Get the aboutMe property: A freeform text entry field for the user to describe themselves.Get the accountEnabled property: true if the account is enabled; otherwise, false.Get the activities property: The user's activities across devices.Get the additionalProperties property: Represents an Azure Active Directory user object.ageGroup()Get the ageGroup property: Sets the age group of the user.Get the appRoleAssignments property: The appRoleAssignments property.Get the assignedLicenses property: The licenses that are assigned to the user.Get the assignedPlans property: The plans that are assigned to the user.birthday()Get the birthday property: The birthday of the user.Get the businessPhones property: The telephone numbers for the user.calendar()Get the calendar property: calendar.Get the calendarGroups property: The user's calendar groups.Get the calendars property: The user's calendars.Get the calendarView property: The calendar view for the calendar.city()Get the city property: The city in which the user is located.Get the companyName property: The company name which the user is associated.Get the consentProvidedForMinor property: Sets whether consent has been obtained for minors.Get the contactFolders property: The user's contacts folders.contacts()Get the contacts property: The user's contacts.country()Get the country property: The country/region in which the user is located; for example, 'US' or 'UK'.Get the createdDateTime property: The created date of the user object.Get the createdObjects property: Directory objects that were created by the user.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).Get the department property: The name for the department in which the user works.Get the deviceEnrollmentLimit property: The limit on the maximum number of devices that the user is permitted to enroll.Get the deviceManagementTroubleshootingEvents property: The list of troubleshooting events for this user.Get the directReports property: The users and contacts that report to the user.Get the displayName property: The name displayed in the address book for the user.drive()Get the drive property: drive.drives()Get the drives property: A collection of drives available for this user.Get the employeeHireDate property: The date and time when the user was hired or will start work in case of a future hire.Get the employeeId property: The employee identifier assigned to the user by the organization.Get the employeeOrgData property: employeeOrgData.Get the employeeType property: Captures enterprise worker type: Employee, Contractor, Consultant, Vendor, etc.events()Get the events property: The user's events.Get the extensions property: The collection of open extensions defined for the user.Get the externalUserState property: The externalUserState property.Get the externalUserStateChangeDateTime property: Shows the timestamp for the latest change to the externalUserState property.Get the faxNumber property: The fax number of the user.Get the followedSites property: The followedSites property.Get the givenName property: The given name (first name) of the user.hireDate()Get the hireDate property: The hire date of the user.Get the identities property: Represents the identities that can be used to sign in to this user account.Get the imAddresses property: The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user.Get the inferenceClassification property: inferenceClassification.insights()Get the insights property: officeGraphInsights.Get the interests property: A list for the user to describe their interests.Get the isResourceAccount property: Do not use – reserved for future use.jobTitle()Get the jobTitle property: The user's job title.Get the joinedTeams property: The joinedTeams property.Get the lastPasswordChangeDateTime property: The time when this Azure AD user last changed their password.Get the legalAgeGroupClassification property: Used by enterprise applications to determine the legal age group of the user.Get the licenseAssignmentStates property: State of license assignments for this user.Get the licenseDetails property: A collection of this user's license details.mail()Get the mail property: The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'.Get the mailboxSettings property: mailboxSettings.Get the mailFolders property: The user's mail folders.Get the mailNickname property: The mail alias for the user.Get the managedAppRegistrations property: Zero or more managed app registrations that belong to the user.Get the managedDevices property: The managed devices associated with the user.manager()Get the manager property: directoryObjectmemberOf()Get the memberOf property: The groups and directory roles that the user is a member of.messages()Get the messages property: The messages in a mailbox or folder.Get the mobilePhone property: The primary cellular telephone number for the user.mySite()Get the mySite property: The URL for the user's personal site.Get the oauth2PermissionGrants property: The oauth2PermissionGrants property.Get the officeLocation property: The office location in the user's place of business.onenote()Get the onenote property: onenote.Get the onlineMeetings property: The onlineMeetings property.Get the onPremisesDistinguishedName property: Contains the on-premises Active Directory distinguished name or DN.Get the onPremisesDomainName property: Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory.Get the onPremisesExtensionAttributes property: onPremisesExtensionAttributes.Get the onPremisesImmutableId property: This property is used to associate an on-premises Active Directory user account to their Azure AD user object.Get the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.Get the onPremisesProvisioningErrors property: Errors when using Microsoft synchronization product during provisioning.Get the onPremisesSamAccountName property: Contains the on-premises samAccountName synchronized from the on-premises directory.Get the onPremisesSecurityIdentifier property: Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud.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).Get the onPremisesUserPrincipalName property: Contains the on-premises userPrincipalName synchronized from the on-premises directory.Get the otherMails property: The otherMails property.outlook()Get the outlook property: outlookUser.Get the ownedDevices property: Devices that are owned by the user.Get the ownedObjects property: Directory objects that are owned by the user.Get the passwordPolicies property: The passwordPolicies property.Get the passwordProfile property: passwordProfile.Get the pastProjects property: A list for the user to enumerate their past projects.people()Get the people property: People that are relevant to the user.photo()Get the photo property: profilePhoto.photos()Get the photos property: The photos property.planner()Get the planner property: plannerUser.Get the postalCode property: The postal code for the user's postal address.Get the preferredLanguage property: The preferred language for the user.Get the preferredName property: The preferred name for the user.presence()Get the presence property: presence.Get the provisionedPlans property: The plans that are provisioned for the user.Get the proxyAddresses property: The proxyAddresses property.Get the registeredDevices property: Devices that are registered for the user.Get the responsibilities property: A list for the user to enumerate their responsibilities.schools()Get the schools property: A list for the user to enumerate the schools they have attended.Get the scopedRoleMemberOf property: The scopedRoleMemberOf property.settings()Get the settings property: userSettings.Get the showInAddressList property: true if the Outlook global address list should contain this user, otherwise false.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).skills()Get the skills property: A list for the user to enumerate their skills.state()Get the state property: The state or province in the user's address.Get the streetAddress property: The street address of the user's place of business.surname()Get the surname property: The user's surname (family name or last name).teamwork()Get the teamwork property: userTeamwork.todo()Get the todo property: todo.Get the transitiveMemberOf property: The transitiveMemberOf property.Get the usageLocation property: A two letter country code (ISO standard 3166).Get the userPrincipalName property: The user principal name (UPN) of the user.userType()Get the userType property: A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'.voidvalidate()Validates the instance.withAboutMe(String aboutMe) Set the aboutMe property: A freeform text entry field for the user to describe themselves.withAccountEnabled(Boolean accountEnabled) Set the accountEnabled property: true if the account is enabled; otherwise, false.withActivities(List<MicrosoftGraphUserActivity> activities) Set the activities property: The user's activities across devices.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: Represents an Azure Active Directory user object.withAgeGroup(String ageGroup) Set the ageGroup property: Sets the age group of the user.withAppRoleAssignments(List<MicrosoftGraphAppRoleAssignment> appRoleAssignments) Set the appRoleAssignments property: The appRoleAssignments property.withAssignedLicenses(List<MicrosoftGraphAssignedLicense> assignedLicenses) Set the assignedLicenses property: The licenses that are assigned to the user.withAssignedPlans(List<MicrosoftGraphAssignedPlan> assignedPlans) Set the assignedPlans property: The plans that are assigned to the user.withBirthday(OffsetDateTime birthday) Set the birthday property: The birthday of the user.withBusinessPhones(List<String> businessPhones) Set the businessPhones property: The telephone numbers for the user.withCalendar(MicrosoftGraphCalendar calendar) Set the calendar property: calendar.withCalendarGroups(List<MicrosoftGraphCalendarGroup> calendarGroups) Set the calendarGroups property: The user's calendar groups.withCalendars(List<MicrosoftGraphCalendar> calendars) Set the calendars property: The user's calendars.withCalendarView(List<MicrosoftGraphEvent> calendarView) Set the calendarView property: The calendar view for the calendar.Set the city property: The city in which the user is located.withCompanyName(String companyName) Set the companyName property: The company name which the user is associated.withConsentProvidedForMinor(String consentProvidedForMinor) Set the consentProvidedForMinor property: Sets whether consent has been obtained for minors.withContactFolders(List<MicrosoftGraphContactFolder> contactFolders) Set the contactFolders property: The user's contacts folders.withContacts(List<MicrosoftGraphContact> contacts) Set the contacts property: The user's contacts.withCountry(String country) Set the country property: The country/region in which the user is located; for example, 'US' or 'UK'.withCreatedDateTime(OffsetDateTime createdDateTime) Set the createdDateTime property: The created date of the user object.withCreatedObjects(List<MicrosoftGraphDirectoryObjectInner> createdObjects) Set the createdObjects property: Directory objects that were created by the user.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).withDeletedDateTime(OffsetDateTime deletedDateTime) Set the deletedDateTime property: The deletedDateTime property.withDepartment(String department) Set the department property: The name for the department in which the user works.withDeviceEnrollmentLimit(Integer deviceEnrollmentLimit) Set the deviceEnrollmentLimit property: The limit on the maximum number of devices that the user is permitted to enroll.withDeviceManagementTroubleshootingEvents(List<MicrosoftGraphDeviceManagementTroubleshootingEvent> deviceManagementTroubleshootingEvents) Set the deviceManagementTroubleshootingEvents property: The list of troubleshooting events for this user.withDirectReports(List<MicrosoftGraphDirectoryObjectInner> directReports) Set the directReports property: The users and contacts that report to the user.withDisplayName(String displayName) Set the displayName property: The name displayed in the address book for the user.withDrive(MicrosoftGraphDrive drive) Set the drive property: drive.withDrives(List<MicrosoftGraphDrive> drives) Set the drives property: A collection of drives available for this user.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.withEmployeeId(String employeeId) Set the employeeId property: The employee identifier assigned to the user by the organization.withEmployeeOrgData(MicrosoftGraphEmployeeOrgData employeeOrgData) Set the employeeOrgData property: employeeOrgData.withEmployeeType(String employeeType) Set the employeeType property: Captures enterprise worker type: Employee, Contractor, Consultant, Vendor, etc.withEvents(List<MicrosoftGraphEvent> events) Set the events property: The user's events.withExtensions(List<MicrosoftGraphExtension> extensions) Set the extensions property: The collection of open extensions defined for the user.withExternalUserState(String externalUserState) Set the externalUserState property: The externalUserState property.withExternalUserStateChangeDateTime(OffsetDateTime externalUserStateChangeDateTime) Set the externalUserStateChangeDateTime property: Shows the timestamp for the latest change to the externalUserState property.withFaxNumber(String faxNumber) Set the faxNumber property: The fax number of the user.withFollowedSites(List<MicrosoftGraphSite> followedSites) Set the followedSites property: The followedSites property.withGivenName(String givenName) Set the givenName property: The given name (first name) of the user.withHireDate(OffsetDateTime hireDate) Set the hireDate property: The hire date of the user.Set the id property: Read-only.withIdentities(List<MicrosoftGraphObjectIdentity> identities) Set the identities property: Represents the identities that can be used to sign in to this user account.withImAddresses(List<String> imAddresses) Set the imAddresses property: The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user.withInferenceClassification(MicrosoftGraphInferenceClassification inferenceClassification) Set the inferenceClassification property: inferenceClassification.Set the insights property: officeGraphInsights.withInterests(List<String> interests) Set the interests property: A list for the user to describe their interests.withIsResourceAccount(Boolean isResourceAccount) Set the isResourceAccount property: Do not use – reserved for future use.withJobTitle(String jobTitle) Set the jobTitle property: The user's job title.withJoinedTeams(List<MicrosoftGraphTeamInner> joinedTeams) Set the joinedTeams property: The joinedTeams property.withLastPasswordChangeDateTime(OffsetDateTime lastPasswordChangeDateTime) Set the lastPasswordChangeDateTime property: The time when this Azure AD user last changed their password.withLegalAgeGroupClassification(String legalAgeGroupClassification) Set the legalAgeGroupClassification property: Used by enterprise applications to determine the legal age group of the user.withLicenseAssignmentStates(List<MicrosoftGraphLicenseAssignmentState> licenseAssignmentStates) Set the licenseAssignmentStates property: State of license assignments for this user.withLicenseDetails(List<MicrosoftGraphLicenseDetails> licenseDetails) Set the licenseDetails property: A collection of this user's license details.Set the mail property: The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'.withMailboxSettings(MicrosoftGraphMailboxSettings mailboxSettings) Set the mailboxSettings property: mailboxSettings.withMailFolders(List<MicrosoftGraphMailFolder> mailFolders) Set the mailFolders property: The user's mail folders.withMailNickname(String mailNickname) Set the mailNickname property: The mail alias for the user.withManagedAppRegistrations(List<MicrosoftGraphManagedAppRegistration> managedAppRegistrations) Set the managedAppRegistrations property: Zero or more managed app registrations that belong to the user.withManagedDevices(List<MicrosoftGraphManagedDevice> managedDevices) Set the managedDevices property: The managed devices associated with the user.Set the manager property: directoryObjectwithMemberOf(List<MicrosoftGraphDirectoryObjectInner> memberOf) Set the memberOf property: The groups and directory roles that the user is a member of.withMessages(List<MicrosoftGraphMessage> messages) Set the messages property: The messages in a mailbox or folder.withMobilePhone(String mobilePhone) Set the mobilePhone property: The primary cellular telephone number for the user.withMySite(String mySite) Set the mySite property: The URL for the user's personal site.withOauth2PermissionGrants(List<MicrosoftGraphOAuth2PermissionGrant> oauth2PermissionGrants) Set the oauth2PermissionGrants property: The oauth2PermissionGrants property.withOfficeLocation(String officeLocation) Set the officeLocation property: The office location in the user's place of business.withOnenote(MicrosoftGraphOnenote onenote) Set the onenote property: onenote.withOnlineMeetings(List<MicrosoftGraphOnlineMeeting> onlineMeetings) Set the onlineMeetings property: The onlineMeetings property.withOnPremisesDistinguishedName(String onPremisesDistinguishedName) Set the onPremisesDistinguishedName property: Contains the on-premises Active Directory distinguished name or DN.withOnPremisesDomainName(String onPremisesDomainName) Set the onPremisesDomainName property: Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory.withOnPremisesExtensionAttributes(MicrosoftGraphOnPremisesExtensionAttributes onPremisesExtensionAttributes) Set the onPremisesExtensionAttributes property: onPremisesExtensionAttributes.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.withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime) Set the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.withOnPremisesProvisioningErrors(List<MicrosoftGraphOnPremisesProvisioningError> onPremisesProvisioningErrors) Set the onPremisesProvisioningErrors property: Errors when using Microsoft synchronization product during provisioning.withOnPremisesSamAccountName(String onPremisesSamAccountName) Set the onPremisesSamAccountName property: Contains the on-premises samAccountName synchronized from the on-premises directory.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.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).withOnPremisesUserPrincipalName(String onPremisesUserPrincipalName) Set the onPremisesUserPrincipalName property: Contains the on-premises userPrincipalName synchronized from the on-premises directory.withOtherMails(List<String> otherMails) Set the otherMails property: The otherMails property.withOutlook(MicrosoftGraphOutlookUser outlook) Set the outlook property: outlookUser.withOwnedDevices(List<MicrosoftGraphDirectoryObjectInner> ownedDevices) Set the ownedDevices property: Devices that are owned by the user.withOwnedObjects(List<MicrosoftGraphDirectoryObjectInner> ownedObjects) Set the ownedObjects property: Directory objects that are owned by the user.withPasswordPolicies(String passwordPolicies) Set the passwordPolicies property: The passwordPolicies property.withPasswordProfile(MicrosoftGraphPasswordProfile passwordProfile) Set the passwordProfile property: passwordProfile.withPastProjects(List<String> pastProjects) Set the pastProjects property: A list for the user to enumerate their past projects.withPeople(List<MicrosoftGraphPerson> people) Set the people property: People that are relevant to the user.Set the photo property: profilePhoto.withPhotos(List<MicrosoftGraphProfilePhoto> photos) Set the photos property: The photos property.withPlanner(MicrosoftGraphPlannerUser planner) Set the planner property: plannerUser.withPostalCode(String postalCode) Set the postalCode property: The postal code for the user's postal address.withPreferredLanguage(String preferredLanguage) Set the preferredLanguage property: The preferred language for the user.withPreferredName(String preferredName) Set the preferredName property: The preferred name for the user.withPresence(MicrosoftGraphPresence presence) Set the presence property: presence.withProvisionedPlans(List<MicrosoftGraphProvisionedPlan> provisionedPlans) Set the provisionedPlans property: The plans that are provisioned for the user.withProxyAddresses(List<String> proxyAddresses) Set the proxyAddresses property: The proxyAddresses property.withRegisteredDevices(List<MicrosoftGraphDirectoryObjectInner> registeredDevices) Set the registeredDevices property: Devices that are registered for the user.withResponsibilities(List<String> responsibilities) Set the responsibilities property: A list for the user to enumerate their responsibilities.withSchools(List<String> schools) Set the schools property: A list for the user to enumerate the schools they have attended.withScopedRoleMemberOf(List<MicrosoftGraphScopedRoleMembership> scopedRoleMemberOf) Set the scopedRoleMemberOf property: The scopedRoleMemberOf property.withSettings(MicrosoftGraphUserSettings settings) Set the settings property: userSettings.withShowInAddressList(Boolean showInAddressList) Set the showInAddressList property: true if the Outlook global address list should contain this user, otherwise false.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).withSkills(List<String> skills) Set the skills property: A list for the user to enumerate their skills.Set the state property: The state or province in the user's address.withStreetAddress(String streetAddress) Set the streetAddress property: The street address of the user's place of business.withSurname(String surname) Set the surname property: The user's surname (family name or last name).withTeamwork(MicrosoftGraphUserTeamwork teamwork) Set the teamwork property: userTeamwork.withTodo(MicrosoftGraphTodo todo) Set the todo property: todo.withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf) Set the transitiveMemberOf property: The transitiveMemberOf property.withUsageLocation(String usageLocation) Set the usageLocation property: A two letter country code (ISO standard 3166).withUserPrincipalName(String userPrincipalName) Set the userPrincipalName property: The user principal name (UPN) of the user.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 class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
deletedDateTimeMethods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphUserInner
public MicrosoftGraphUserInner()Creates an instance of MicrosoftGraphUserInner class.
-
-
Method Details
-
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.
-
withAccountEnabled
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.
-
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.
-
withAgeGroup
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.
-
assignedLicenses
Get the assignedLicenses property: The licenses that are assigned to the user. Not nullable.- Returns:
- the assignedLicenses value.
-
withAssignedLicenses
public MicrosoftGraphUserInner withAssignedLicenses(List<MicrosoftGraphAssignedLicense> 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.
-
assignedPlans
Get the assignedPlans property: The plans that are assigned to the user. Read-only. Not nullable.- Returns:
- the assignedPlans value.
-
withAssignedPlans
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.
-
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.
-
withBusinessPhones
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.
-
city
Get the city property: The city in which the user is located. Supports $filter.- Returns:
- the city value.
-
withCity
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.
-
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.
-
withCompanyName
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.
-
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.
-
withConsentProvidedForMinor
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.
-
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.
-
withCountry
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.
-
createdDateTime
Get the createdDateTime property: The created date of the user object.- Returns:
- the createdDateTime value.
-
withCreatedDateTime
Set the createdDateTime property: The created date of the user object.- Parameters:
createdDateTime- the createdDateTime value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
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.
-
withCreationType
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.
-
department
Get the department property: The name for the department in which the user works. Supports $filter.- Returns:
- the department value.
-
withDepartment
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.
-
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.
-
withDisplayName
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.
-
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.
-
withEmployeeHireDate
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.
-
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.
-
withEmployeeId
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.
-
employeeOrgData
Get the employeeOrgData property: employeeOrgData.- Returns:
- the employeeOrgData value.
-
withEmployeeOrgData
Set the employeeOrgData property: employeeOrgData.- Parameters:
employeeOrgData- the employeeOrgData value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
employeeType
Get the employeeType property: Captures enterprise worker type: Employee, Contractor, Consultant, Vendor, etc. Returned only on $select. Supports $filter.- Returns:
- the employeeType value.
-
withEmployeeType
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.
-
externalUserState
Get the externalUserState property: The externalUserState property.- Returns:
- the externalUserState value.
-
withExternalUserState
Set the externalUserState property: The externalUserState property.- Parameters:
externalUserState- the externalUserState value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
externalUserStateChangeDateTime
Get the externalUserStateChangeDateTime property: Shows the timestamp for the latest change to the externalUserState property. Returned only on $select.- Returns:
- the externalUserStateChangeDateTime value.
-
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.
-
faxNumber
Get the faxNumber property: The fax number of the user.- Returns:
- the faxNumber value.
-
withFaxNumber
Set the faxNumber property: The fax number of the user.- Parameters:
faxNumber- the faxNumber value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
givenName
Get the givenName property: The given name (first name) of the user. Supports $filter.- Returns:
- the givenName value.
-
withGivenName
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.
-
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.
-
withIdentities
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.
-
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.
-
withImAddresses
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.
-
isResourceAccount
Get the isResourceAccount property: Do not use – reserved for future use.- Returns:
- the isResourceAccount value.
-
withIsResourceAccount
Set the isResourceAccount property: Do not use – reserved for future use.- Parameters:
isResourceAccount- the isResourceAccount value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
jobTitle
Get the jobTitle property: The user's job title. Supports $filter.- Returns:
- the jobTitle value.
-
withJobTitle
Set the jobTitle property: The user's job title. Supports $filter.- Parameters:
jobTitle- the jobTitle value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
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.
-
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.
-
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.
-
withLegalAgeGroupClassification
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.
-
licenseAssignmentStates
Get the licenseAssignmentStates property: State of license assignments for this user. Read-only.- Returns:
- the licenseAssignmentStates value.
-
withLicenseAssignmentStates
public MicrosoftGraphUserInner withLicenseAssignmentStates(List<MicrosoftGraphLicenseAssignmentState> 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.
-
mail
Get the mail property: The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'. Supports $filter.- Returns:
- the mail value.
-
withMail
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.
-
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.
-
withMailNickname
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.
-
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.
-
withMobilePhone
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.
-
officeLocation
Get the officeLocation property: The office location in the user's place of business.- Returns:
- the officeLocation value.
-
withOfficeLocation
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.
-
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.
-
withOnPremisesDistinguishedName
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.
-
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.
-
withOnPremisesDomainName
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.
-
onPremisesExtensionAttributes
Get the onPremisesExtensionAttributes property: onPremisesExtensionAttributes.- Returns:
- the onPremisesExtensionAttributes value.
-
withOnPremisesExtensionAttributes
public MicrosoftGraphUserInner withOnPremisesExtensionAttributes(MicrosoftGraphOnPremisesExtensionAttributes onPremisesExtensionAttributes) Set the onPremisesExtensionAttributes property: onPremisesExtensionAttributes.- Parameters:
onPremisesExtensionAttributes- the onPremisesExtensionAttributes value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
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.
-
withOnPremisesImmutableId
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.
-
onPremisesLastSyncDateTime
Get the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.- Returns:
- the onPremisesLastSyncDateTime value.
-
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.
-
onPremisesProvisioningErrors
Get the onPremisesProvisioningErrors property: Errors when using Microsoft synchronization product during provisioning.- Returns:
- the onPremisesProvisioningErrors value.
-
withOnPremisesProvisioningErrors
public MicrosoftGraphUserInner withOnPremisesProvisioningErrors(List<MicrosoftGraphOnPremisesProvisioningError> 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.
-
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.
-
withOnPremisesSamAccountName
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.
-
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.
-
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.
-
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.
-
withOnPremisesSyncEnabled
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.
-
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.
-
withOnPremisesUserPrincipalName
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.
-
otherMails
Get the otherMails property: The otherMails property.- Returns:
- the otherMails value.
-
withOtherMails
Set the otherMails property: The otherMails property.- Parameters:
otherMails- the otherMails value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
passwordPolicies
Get the passwordPolicies property: The passwordPolicies property.- Returns:
- the passwordPolicies value.
-
withPasswordPolicies
Set the passwordPolicies property: The passwordPolicies property.- Parameters:
passwordPolicies- the passwordPolicies value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
passwordProfile
Get the passwordProfile property: passwordProfile.- Returns:
- the passwordProfile value.
-
withPasswordProfile
Set the passwordProfile property: passwordProfile.- Parameters:
passwordProfile- the passwordProfile value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
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.
-
withPostalCode
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.
-
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.
-
withPreferredLanguage
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.
-
provisionedPlans
Get the provisionedPlans property: The plans that are provisioned for the user. Read-only. Not nullable.- Returns:
- the provisionedPlans value.
-
withProvisionedPlans
public MicrosoftGraphUserInner withProvisionedPlans(List<MicrosoftGraphProvisionedPlan> 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.
-
proxyAddresses
Get the proxyAddresses property: The proxyAddresses property.- Returns:
- the proxyAddresses value.
-
withProxyAddresses
Set the proxyAddresses property: The proxyAddresses property.- Parameters:
proxyAddresses- the proxyAddresses value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
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.
-
withShowInAddressList
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.
-
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.
-
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.
-
state
Get the state property: The state or province in the user's address. Supports $filter.- Returns:
- the state value.
-
withState
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.
-
streetAddress
Get the streetAddress property: The street address of the user's place of business.- Returns:
- the streetAddress value.
-
withStreetAddress
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.
-
surname
Get the surname property: The user's surname (family name or last name). Supports $filter.- Returns:
- the surname value.
-
withSurname
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.
-
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.
-
withUsageLocation
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.
-
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.
-
withUserPrincipalName
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.
-
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.
-
withUserType
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.
-
mailboxSettings
Get the mailboxSettings property: mailboxSettings.- Returns:
- the mailboxSettings value.
-
withMailboxSettings
Set the mailboxSettings property: mailboxSettings.- Parameters:
mailboxSettings- the mailboxSettings value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
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.
-
withDeviceEnrollmentLimit
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.
-
aboutMe
Get the aboutMe property: A freeform text entry field for the user to describe themselves.- Returns:
- the aboutMe value.
-
withAboutMe
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.
-
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.
-
withBirthday
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.
-
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.
-
withHireDate
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.
-
interests
Get the interests property: A list for the user to describe their interests.- Returns:
- the interests value.
-
withInterests
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.
-
mySite
Get the mySite property: The URL for the user's personal site.- Returns:
- the mySite value.
-
withMySite
Set the mySite property: The URL for the user's personal site.- Parameters:
mySite- the mySite value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
pastProjects
Get the pastProjects property: A list for the user to enumerate their past projects.- Returns:
- the pastProjects value.
-
withPastProjects
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.
-
preferredName
Get the preferredName property: The preferred name for the user.- Returns:
- the preferredName value.
-
withPreferredName
Set the preferredName property: The preferred name for the user.- Parameters:
preferredName- the preferredName value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
responsibilities
Get the responsibilities property: A list for the user to enumerate their responsibilities.- Returns:
- the responsibilities value.
-
withResponsibilities
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.
-
schools
Get the schools property: A list for the user to enumerate the schools they have attended.- Returns:
- the schools value.
-
withSchools
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.
-
skills
Get the skills property: A list for the user to enumerate their skills.- Returns:
- the skills value.
-
withSkills
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.
-
appRoleAssignments
Get the appRoleAssignments property: The appRoleAssignments property.- Returns:
- the appRoleAssignments value.
-
withAppRoleAssignments
public MicrosoftGraphUserInner withAppRoleAssignments(List<MicrosoftGraphAppRoleAssignment> appRoleAssignments) Set the appRoleAssignments property: The appRoleAssignments property.- Parameters:
appRoleAssignments- the appRoleAssignments value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
createdObjects
Get the createdObjects property: Directory objects that were created by the user. Read-only. Nullable.- Returns:
- the createdObjects value.
-
withCreatedObjects
public MicrosoftGraphUserInner withCreatedObjects(List<MicrosoftGraphDirectoryObjectInner> 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.
-
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.
-
withDirectReports
public MicrosoftGraphUserInner withDirectReports(List<MicrosoftGraphDirectoryObjectInner> 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.
-
licenseDetails
Get the licenseDetails property: A collection of this user's license details. Read-only.- Returns:
- the licenseDetails value.
-
withLicenseDetails
public MicrosoftGraphUserInner withLicenseDetails(List<MicrosoftGraphLicenseDetails> 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.
-
manager
Get the manager property: directoryObjectRepresents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
- Returns:
- the manager value.
-
withManager
Set the manager property: directoryObjectRepresents 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.
-
memberOf
Get the memberOf property: The groups and directory roles that the user is a member of. Read-only. Nullable.- Returns:
- the memberOf value.
-
withMemberOf
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.
-
oauth2PermissionGrants
Get the oauth2PermissionGrants property: The oauth2PermissionGrants property.- Returns:
- the oauth2PermissionGrants value.
-
withOauth2PermissionGrants
public MicrosoftGraphUserInner withOauth2PermissionGrants(List<MicrosoftGraphOAuth2PermissionGrant> oauth2PermissionGrants) Set the oauth2PermissionGrants property: The oauth2PermissionGrants property.- Parameters:
oauth2PermissionGrants- the oauth2PermissionGrants value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
ownedDevices
Get the ownedDevices property: Devices that are owned by the user. Read-only. Nullable.- Returns:
- the ownedDevices value.
-
withOwnedDevices
public MicrosoftGraphUserInner withOwnedDevices(List<MicrosoftGraphDirectoryObjectInner> 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.
-
ownedObjects
Get the ownedObjects property: Directory objects that are owned by the user. Read-only. Nullable.- Returns:
- the ownedObjects value.
-
withOwnedObjects
public MicrosoftGraphUserInner withOwnedObjects(List<MicrosoftGraphDirectoryObjectInner> 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.
-
registeredDevices
Get the registeredDevices property: Devices that are registered for the user. Read-only. Nullable.- Returns:
- the registeredDevices value.
-
withRegisteredDevices
public MicrosoftGraphUserInner withRegisteredDevices(List<MicrosoftGraphDirectoryObjectInner> 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.
-
scopedRoleMemberOf
Get the scopedRoleMemberOf property: The scopedRoleMemberOf property.- Returns:
- the scopedRoleMemberOf value.
-
withScopedRoleMemberOf
public MicrosoftGraphUserInner withScopedRoleMemberOf(List<MicrosoftGraphScopedRoleMembership> scopedRoleMemberOf) Set the scopedRoleMemberOf property: The scopedRoleMemberOf property.- Parameters:
scopedRoleMemberOf- the scopedRoleMemberOf value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
transitiveMemberOf
Get the transitiveMemberOf property: The transitiveMemberOf property.- Returns:
- the transitiveMemberOf value.
-
withTransitiveMemberOf
public MicrosoftGraphUserInner withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf) Set the transitiveMemberOf property: The transitiveMemberOf property.- Parameters:
transitiveMemberOf- the transitiveMemberOf value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
calendar
Get the calendar property: calendar.- Returns:
- the calendar value.
-
withCalendar
Set the calendar property: calendar.- Parameters:
calendar- the calendar value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
calendarGroups
Get the calendarGroups property: The user's calendar groups. Read-only. Nullable.- Returns:
- the calendarGroups value.
-
withCalendarGroups
Set the calendarGroups property: The user's calendar groups. Read-only. Nullable.- Parameters:
calendarGroups- the calendarGroups value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
calendars
Get the calendars property: The user's calendars. Read-only. Nullable.- Returns:
- the calendars value.
-
withCalendars
Set the calendars property: The user's calendars. Read-only. Nullable.- Parameters:
calendars- the calendars value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
calendarView
Get the calendarView property: The calendar view for the calendar. Read-only. Nullable.- Returns:
- the calendarView value.
-
withCalendarView
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.
-
contactFolders
Get the contactFolders property: The user's contacts folders. Read-only. Nullable.- Returns:
- the contactFolders value.
-
withContactFolders
Set the contactFolders property: The user's contacts folders. Read-only. Nullable.- Parameters:
contactFolders- the contactFolders value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
contacts
Get the contacts property: The user's contacts. Read-only. Nullable.- Returns:
- the contacts value.
-
withContacts
Set the contacts property: The user's contacts. Read-only. Nullable.- Parameters:
contacts- the contacts value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
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.
-
withEvents
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.
-
inferenceClassification
Get the inferenceClassification property: inferenceClassification.- Returns:
- the inferenceClassification value.
-
withInferenceClassification
public MicrosoftGraphUserInner withInferenceClassification(MicrosoftGraphInferenceClassification inferenceClassification) Set the inferenceClassification property: inferenceClassification.- Parameters:
inferenceClassification- the inferenceClassification value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
mailFolders
Get the mailFolders property: The user's mail folders. Read-only. Nullable.- Returns:
- the mailFolders value.
-
withMailFolders
Set the mailFolders property: The user's mail folders. Read-only. Nullable.- Parameters:
mailFolders- the mailFolders value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
messages
Get the messages property: The messages in a mailbox or folder. Read-only. Nullable.- Returns:
- the messages value.
-
withMessages
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.
-
outlook
Get the outlook property: outlookUser.- Returns:
- the outlook value.
-
withOutlook
Set the outlook property: outlookUser.- Parameters:
outlook- the outlook value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
people
Get the people property: People that are relevant to the user. Read-only. Nullable.- Returns:
- the people value.
-
withPeople
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.
-
photo
Get the photo property: profilePhoto.- Returns:
- the photo value.
-
withPhoto
Set the photo property: profilePhoto.- Parameters:
photo- the photo value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
photos
Get the photos property: The photos property.- Returns:
- the photos value.
-
withPhotos
Set the photos property: The photos property.- Parameters:
photos- the photos value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
drive
Get the drive property: drive.- Returns:
- the drive value.
-
withDrive
Set the drive property: drive.- Parameters:
drive- the drive value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
drives
Get the drives property: A collection of drives available for this user. Read-only.- Returns:
- the drives value.
-
withDrives
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.
-
followedSites
Get the followedSites property: The followedSites property.- Returns:
- the followedSites value.
-
withFollowedSites
Set the followedSites property: The followedSites property.- Parameters:
followedSites- the followedSites value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
extensions
Get the extensions property: The collection of open extensions defined for the user. Read-only. Nullable.- Returns:
- the extensions value.
-
withExtensions
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.
-
managedDevices
Get the managedDevices property: The managed devices associated with the user.- Returns:
- the managedDevices value.
-
withManagedDevices
Set the managedDevices property: The managed devices associated with the user.- Parameters:
managedDevices- the managedDevices value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
managedAppRegistrations
Get the managedAppRegistrations property: Zero or more managed app registrations that belong to the user.- Returns:
- the managedAppRegistrations value.
-
withManagedAppRegistrations
public MicrosoftGraphUserInner withManagedAppRegistrations(List<MicrosoftGraphManagedAppRegistration> 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.
-
deviceManagementTroubleshootingEvents
public List<MicrosoftGraphDeviceManagementTroubleshootingEvent> deviceManagementTroubleshootingEvents()Get the deviceManagementTroubleshootingEvents property: The list of troubleshooting events for this user.- Returns:
- the deviceManagementTroubleshootingEvents value.
-
withDeviceManagementTroubleshootingEvents
public MicrosoftGraphUserInner withDeviceManagementTroubleshootingEvents(List<MicrosoftGraphDeviceManagementTroubleshootingEvent> 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.
-
planner
Get the planner property: plannerUser.- Returns:
- the planner value.
-
withPlanner
Set the planner property: plannerUser.- Parameters:
planner- the planner value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
insights
Get the insights property: officeGraphInsights.- Returns:
- the insights value.
-
withInsights
Set the insights property: officeGraphInsights.- Parameters:
insights- the insights value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
settings
Get the settings property: userSettings.- Returns:
- the settings value.
-
withSettings
Set the settings property: userSettings.- Parameters:
settings- the settings value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
onenote
Get the onenote property: onenote.- Returns:
- the onenote value.
-
withOnenote
Set the onenote property: onenote.- Parameters:
onenote- the onenote value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
activities
Get the activities property: The user's activities across devices. Read-only. Nullable.- Returns:
- the activities value.
-
withActivities
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.
-
onlineMeetings
Get the onlineMeetings property: The onlineMeetings property.- Returns:
- the onlineMeetings value.
-
withOnlineMeetings
Set the onlineMeetings property: The onlineMeetings property.- Parameters:
onlineMeetings- the onlineMeetings value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
presence
Get the presence property: presence.- Returns:
- the presence value.
-
withPresence
Set the presence property: presence.- Parameters:
presence- the presence value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
joinedTeams
Get the joinedTeams property: The joinedTeams property.- Returns:
- the joinedTeams value.
-
withJoinedTeams
Set the joinedTeams property: The joinedTeams property.- Parameters:
joinedTeams- the joinedTeams value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
teamwork
Get the teamwork property: userTeamwork.- Returns:
- the teamwork value.
-
withTeamwork
Set the teamwork property: userTeamwork.- Parameters:
teamwork- the teamwork value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
todo
Get the todo property: todo.- Returns:
- the todo value.
-
withTodo
Set the todo property: todo.- Parameters:
todo- the todo value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
additionalProperties
Get the additionalProperties property: Represents an Azure Active Directory user object.- Overrides:
additionalPropertiesin classMicrosoftGraphDirectoryObjectInner- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: Represents an Azure Active Directory user object.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphDirectoryObjectInner- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphUserInner object itself.
-
withDeletedDateTime
Set the deletedDateTime property: The deletedDateTime property.- Overrides:
withDeletedDateTimein classMicrosoftGraphDirectoryObjectInner- Parameters:
deletedDateTime- the deletedDateTime value to set.- Returns:
- the MicrosoftGraphDirectoryObjectInner object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphDirectoryObjectInner- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphDirectoryObjectInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-