Package com.microsoft.graph.models
Class User
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DirectoryObject
com.microsoft.graph.models.User
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class User
extends DirectoryObject
implements com.microsoft.kiota.serialization.Parsable
Represents a Microsoft Entra user account.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UsercreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the aboutMe property value.Gets the accountEnabled property value.Gets the activities property value.Gets the ageGroup property value.Gets the agreementAcceptances property value.Gets the appRoleAssignments property value.Gets the assignedLicenses property value.Gets the assignedPlans property value.Gets the authentication property value.Gets the authorizationInfo property value.Gets the birthday property value.Gets the businessPhones property value.Gets the calendar property value.Gets the calendarGroups property value.Gets the calendars property value.Gets the calendarView property value.getChats()Gets the chats property value.getCity()Gets the city property value.Gets the cloudClipboard property value.Gets the cloudPCs property value.Gets the companyName property value.Gets the consentProvidedForMinor property value.Gets the contactFolders property value.Gets the contacts property value.Gets the country property value.Gets the createdDateTime property value.Gets the createdObjects property value.Gets the creationType property value.Gets the customSecurityAttributes property value.Gets the dataSecurityAndGovernance property value.Gets the department property value.Gets the deviceEnrollmentLimit property value.Gets the deviceManagementTroubleshootingEvents property value.Gets the directReports property value.Gets the displayName property value.getDrive()Gets the drive property value.Gets the drives property value.Gets the employeeExperience property value.Gets the employeeHireDate property value.Gets the employeeId property value.Gets the employeeLeaveDateTime property value.Gets the employeeOrgData property value.Gets the employeeType property value.Gets the events property value.Gets the extensions property value.Gets the externalUserState property value.Gets the externalUserStateChangeDateTime property value.Gets the faxNumber property value.The deserialization information for the current modelGets the followedSites property value.Gets the givenName property value.Gets the hireDate property value.Gets the identities property value.Gets the imAddresses property value.Gets the inferenceClassification property value.Gets the insights property value.Gets the interests property value.Gets the isManagementRestricted property value.Gets the isResourceAccount property value.Gets the jobTitle property value.Gets the joinedTeams property value.Gets the lastPasswordChangeDateTime property value.Gets the legalAgeGroupClassification property value.Gets the licenseAssignmentStates property value.Gets the licenseDetails property value.getMail()Gets the mail property value.Gets the mailboxSettings property value.Gets the mailFolders property value.Gets the mailNickname property value.Gets the managedAppRegistrations property value.Gets the managedDevices property value.Gets the manager property value.Gets the memberOf property value.Gets the messages property value.Gets the mobilePhone property value.Gets the mySite property value.Gets the oauth2PermissionGrants property value.Gets the officeLocation property value.Gets the onenote property value.Gets the onlineMeetings property value.Gets the onPremisesDistinguishedName property value.Gets the onPremisesDomainName property value.Gets the onPremisesExtensionAttributes property value.Gets the onPremisesImmutableId property value.Gets the onPremisesLastSyncDateTime property value.Gets the onPremisesProvisioningErrors property value.Gets the onPremisesSamAccountName property value.Gets the onPremisesSecurityIdentifier property value.Gets the onPremisesSyncEnabled property value.Gets the onPremisesUserPrincipalName property value.Gets the otherMails property value.Gets the outlook property value.Gets the ownedDevices property value.Gets the ownedObjects property value.Gets the passwordPolicies property value.Gets the passwordProfile property value.Gets the pastProjects property value.Gets the people property value.Gets the permissionGrants property value.getPhoto()Gets the photo property value.Gets the photos property value.Gets the planner property value.Gets the postalCode property value.Gets the preferredDataLocation property value.Gets the preferredLanguage property value.Gets the preferredName property value.Gets the presence property value.getPrint()Gets the print property value.Gets the provisionedPlans property value.Gets the proxyAddresses property value.Gets the registeredDevices property value.Gets the responsibilities property value.Gets the schools property value.Gets the scopedRoleMemberOf property value.Gets the securityIdentifier property value.Gets the serviceProvisioningErrors property value.Gets the settings property value.Gets the showInAddressList property value.Gets the signInActivity property value.Gets the signInSessionsValidFromDateTime property value.Gets the skills property value.Gets the solutions property value.Gets the sponsors property value.getState()Gets the state property value.Gets the streetAddress property value.Gets the surname property value.Gets the teamwork property value.getTodo()Gets the todo property value.Gets the transitiveMemberOf property value.Gets the usageLocation property value.Gets the userPrincipalName property value.Gets the userType property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAboutMe(String value) Sets the aboutMe property value.voidsetAccountEnabled(Boolean value) Sets the accountEnabled property value.voidsetActivities(List<UserActivity> value) Sets the activities property value.voidsetAgeGroup(String value) Sets the ageGroup property value.voidSets the agreementAcceptances property value.voidSets the appRoleAssignments property value.voidsetAssignedLicenses(List<AssignedLicense> value) Sets the assignedLicenses property value.voidsetAssignedPlans(List<AssignedPlan> value) Sets the assignedPlans property value.voidsetAuthentication(Authentication value) Sets the authentication property value.voidSets the authorizationInfo property value.voidsetBirthday(OffsetDateTime value) Sets the birthday property value.voidsetBusinessPhones(List<String> value) Sets the businessPhones property value.voidsetCalendar(Calendar value) Sets the calendar property value.voidsetCalendarGroups(List<CalendarGroup> value) Sets the calendarGroups property value.voidsetCalendars(List<Calendar> value) Sets the calendars property value.voidsetCalendarView(List<Event> value) Sets the calendarView property value.voidSets the chats property value.voidSets the city property value.voidSets the cloudClipboard property value.voidsetCloudPCs(List<CloudPC> value) Sets the cloudPCs property value.voidsetCompanyName(String value) Sets the companyName property value.voidsetConsentProvidedForMinor(String value) Sets the consentProvidedForMinor property value.voidsetContactFolders(List<ContactFolder> value) Sets the contactFolders property value.voidsetContacts(List<Contact> value) Sets the contacts property value.voidsetCountry(String value) Sets the country property value.voidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidsetCreatedObjects(List<DirectoryObject> value) Sets the createdObjects property value.voidsetCreationType(String value) Sets the creationType property value.voidSets the customSecurityAttributes property value.voidSets the dataSecurityAndGovernance property value.voidsetDepartment(String value) Sets the department property value.voidsetDeviceEnrollmentLimit(Integer value) Sets the deviceEnrollmentLimit property value.voidSets the deviceManagementTroubleshootingEvents property value.voidsetDirectReports(List<DirectoryObject> value) Sets the directReports property value.voidsetDisplayName(String value) Sets the displayName property value.voidSets the drive property value.voidSets the drives property value.voidSets the employeeExperience property value.voidSets the employeeHireDate property value.voidsetEmployeeId(String value) Sets the employeeId property value.voidSets the employeeLeaveDateTime property value.voidSets the employeeOrgData property value.voidsetEmployeeType(String value) Sets the employeeType property value.voidSets the events property value.voidsetExtensions(List<Extension> value) Sets the extensions property value.voidsetExternalUserState(String value) Sets the externalUserState property value.voidSets the externalUserStateChangeDateTime property value.voidsetFaxNumber(String value) Sets the faxNumber property value.voidsetFollowedSites(List<Site> value) Sets the followedSites property value.voidsetGivenName(String value) Sets the givenName property value.voidsetHireDate(OffsetDateTime value) Sets the hireDate property value.voidsetIdentities(List<ObjectIdentity> value) Sets the identities property value.voidsetImAddresses(List<String> value) Sets the imAddresses property value.voidSets the inferenceClassification property value.voidsetInsights(ItemInsights value) Sets the insights property value.voidsetInterests(List<String> value) Sets the interests property value.voidsetIsManagementRestricted(Boolean value) Sets the isManagementRestricted property value.voidsetIsResourceAccount(Boolean value) Sets the isResourceAccount property value.voidsetJobTitle(String value) Sets the jobTitle property value.voidsetJoinedTeams(List<Team> value) Sets the joinedTeams property value.voidSets the lastPasswordChangeDateTime property value.voidSets the legalAgeGroupClassification property value.voidSets the licenseAssignmentStates property value.voidsetLicenseDetails(List<LicenseDetails> value) Sets the licenseDetails property value.voidSets the mail property value.voidSets the mailboxSettings property value.voidsetMailFolders(List<MailFolder> value) Sets the mailFolders property value.voidsetMailNickname(String value) Sets the mailNickname property value.voidSets the managedAppRegistrations property value.voidsetManagedDevices(List<ManagedDevice> value) Sets the managedDevices property value.voidsetManager(DirectoryObject value) Sets the manager property value.voidsetMemberOf(List<DirectoryObject> value) Sets the memberOf property value.voidsetMessages(List<Message> value) Sets the messages property value.voidsetMobilePhone(String value) Sets the mobilePhone property value.voidSets the mySite property value.voidSets the oauth2PermissionGrants property value.voidsetOfficeLocation(String value) Sets the officeLocation property value.voidsetOnenote(Onenote value) Sets the onenote property value.voidsetOnlineMeetings(List<OnlineMeeting> value) Sets the onlineMeetings property value.voidSets the onPremisesDistinguishedName property value.voidsetOnPremisesDomainName(String value) Sets the onPremisesDomainName property value.voidSets the onPremisesExtensionAttributes property value.voidsetOnPremisesImmutableId(String value) Sets the onPremisesImmutableId property value.voidSets the onPremisesLastSyncDateTime property value.voidSets the onPremisesProvisioningErrors property value.voidSets the onPremisesSamAccountName property value.voidSets the onPremisesSecurityIdentifier property value.voidsetOnPremisesSyncEnabled(Boolean value) Sets the onPremisesSyncEnabled property value.voidSets the onPremisesUserPrincipalName property value.voidsetOtherMails(List<String> value) Sets the otherMails property value.voidsetOutlook(OutlookUser value) Sets the outlook property value.voidsetOwnedDevices(List<DirectoryObject> value) Sets the ownedDevices property value.voidsetOwnedObjects(List<DirectoryObject> value) Sets the ownedObjects property value.voidsetPasswordPolicies(String value) Sets the passwordPolicies property value.voidSets the passwordProfile property value.voidsetPastProjects(List<String> value) Sets the pastProjects property value.voidSets the people property value.voidSets the permissionGrants property value.voidsetPhoto(ProfilePhoto value) Sets the photo property value.voidsetPhotos(List<ProfilePhoto> value) Sets the photos property value.voidsetPlanner(PlannerUser value) Sets the planner property value.voidsetPostalCode(String value) Sets the postalCode property value.voidsetPreferredDataLocation(String value) Sets the preferredDataLocation property value.voidsetPreferredLanguage(String value) Sets the preferredLanguage property value.voidsetPreferredName(String value) Sets the preferredName property value.voidsetPresence(Presence value) Sets the presence property value.voidSets the print property value.voidsetProvisionedPlans(List<ProvisionedPlan> value) Sets the provisionedPlans property value.voidsetProxyAddresses(List<String> value) Sets the proxyAddresses property value.voidsetRegisteredDevices(List<DirectoryObject> value) Sets the registeredDevices property value.voidsetResponsibilities(List<String> value) Sets the responsibilities property value.voidsetSchools(List<String> value) Sets the schools property value.voidSets the scopedRoleMemberOf property value.voidsetSecurityIdentifier(String value) Sets the securityIdentifier property value.voidSets the serviceProvisioningErrors property value.voidsetSettings(UserSettings value) Sets the settings property value.voidsetShowInAddressList(Boolean value) Sets the showInAddressList property value.voidsetSignInActivity(SignInActivity value) Sets the signInActivity property value.voidSets the signInSessionsValidFromDateTime property value.voidSets the skills property value.voidsetSolutions(UserSolutionRoot value) Sets the solutions property value.voidsetSponsors(List<DirectoryObject> value) Sets the sponsors property value.voidSets the state property value.voidsetStreetAddress(String value) Sets the streetAddress property value.voidsetSurname(String value) Sets the surname property value.voidsetTeamwork(UserTeamwork value) Sets the teamwork property value.voidSets the todo property value.voidsetTransitiveMemberOf(List<DirectoryObject> value) Sets the transitiveMemberOf property value.voidsetUsageLocation(String value) Sets the usageLocation property value.voidsetUserPrincipalName(String value) Sets the userPrincipalName property value.voidsetUserType(String value) Sets the userType property value.Methods inherited from class com.microsoft.graph.models.DirectoryObject
getDeletedDateTime, setDeletedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
User
public User()Instantiates a newUserand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static User createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
User
-
getAboutMe
Gets the aboutMe property value. A freeform text entry field for the user to describe themselves. Returned only on $select.- Returns:
- a
String
-
getAccountEnabled
Gets the accountEnabled property value. true if the account is enabled; otherwise, false. This property is required when a user is created. Returned only on $select. Supports $filter (eq, ne, not, and in).- Returns:
- a
Boolean
-
getActivities
Gets the activities property value. The user's activities across devices. Read-only. Nullable.- Returns:
- a
List<UserActivity>
-
getAgeGroup
Gets the ageGroup property value. Sets the age group of the user. Allowed values: null, Minor, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).- Returns:
- a
String
-
getAgreementAcceptances
Gets the agreementAcceptances property value. The user's terms of use acceptance statuses. Read-only. Nullable.- Returns:
- a
List<AgreementAcceptance>
-
getAppRoleAssignments
Gets the appRoleAssignments property value. Represents the app roles a user is granted for an application. Supports $expand.- Returns:
- a
List<AppRoleAssignment>
-
getAssignedLicenses
Gets the assignedLicenses property value. The licenses that are assigned to the user, including inherited (group-based) licenses. This property doesn't differentiate between directly assigned and inherited licenses. Use the licenseAssignmentStates property to identify the directly assigned and inherited licenses. Not nullable. Returned only on $select. Supports $filter (eq, not, /$count eq 0, /$count ne 0).- Returns:
- a
List<AssignedLicense>
-
getAssignedPlans
Gets the assignedPlans property value. The plans that are assigned to the user. Read-only. Not nullable. Returned only on $select. Supports $filter (eq and not).- Returns:
- a
List<AssignedPlan>
-
getAuthentication
Gets the authentication property value. The authentication methods that are supported for the user.- Returns:
- a
Authentication
-
getAuthorizationInfo
Gets the authorizationInfo property value. The authorizationInfo property- Returns:
- a
AuthorizationInfo
-
getBirthday
Gets the birthday property value. The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. Returned only on $select.- Returns:
- a
OffsetDateTime
-
getBusinessPhones
Gets the businessPhones property value. The telephone numbers for the user. NOTE: Although it's a string collection, only one number can be set for this property. Read-only for users synced from the on-premises directory. Returned by default. Supports $filter (eq, not, ge, le, startsWith). -
getCalendar
Gets the calendar property value. The user's primary calendar. Read-only.- Returns:
- a
Calendar
-
getCalendarGroups
Gets the calendarGroups property value. The user's calendar groups. Read-only. Nullable.- Returns:
- a
List<CalendarGroup>
-
getCalendars
Gets the calendars property value. The user's calendars. Read-only. Nullable. -
getCalendarView
Gets the calendarView property value. The calendar view for the calendar. Read-only. Nullable. -
getChats
Gets the chats property value. The chats property -
getCity
Gets the city property value. The city where the user is located. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getCloudClipboard
Gets the cloudClipboard property value. The cloudClipboard property- Returns:
- a
CloudClipboardRoot
-
getCloudPCs
Gets the cloudPCs property value. The user's Cloud PCs. Read-only. Nullable. -
getCompanyName
Gets the companyName property value. The name of the company that the user is associated with. This property can be useful for describing the company that a guest comes from. The maximum length is 64 characters.Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getConsentProvidedForMinor
Gets the consentProvidedForMinor property value. Sets whether consent was obtained for minors. Allowed values: null, Granted, Denied, and NotRequired. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).- Returns:
- a
String
-
getContactFolders
Gets the contactFolders property value. The user's contacts folders. Read-only. Nullable.- Returns:
- a
List<ContactFolder>
-
getContacts
Gets the contacts property value. The user's contacts. Read-only. Nullable. -
getCountry
Gets the country property value. The country or region where the user is located; for example, US or UK. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getCreatedDateTime
Gets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and UTC. The value can't be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Microsoft Entra ID. Property is null for some users created before June 2018 and on-premises users that were synced to Microsoft Entra ID before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).- Returns:
- a
OffsetDateTime
-
getCreatedObjects
Gets the createdObjects property value. Directory objects that the user created. Read-only. Nullable.- Returns:
- a
List<DirectoryObject>
-
getCreationType
Gets the creationType property value. Indicates whether the user account was created through one of the following methods: As a regular school or work account (null). As an external account (Invitation). As a local account for an Azure Active Directory B2C tenant (LocalAccount). Through self-service sign-up by an internal user using email verification (EmailVerified). Through self-service sign-up by a guest signing up through a link that is part of a user flow (SelfServiceSignUp). Read-only.Returned only on $select. Supports $filter (eq, ne, not, in).- Returns:
- a
String
-
getCustomSecurityAttributes
Gets the customSecurityAttributes property value. An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). The filter value is case-sensitive. To read this property, the calling app must be assigned the CustomSecAttributeAssignment.Read.All permission. To write this property, the calling app must be assigned the CustomSecAttributeAssignment.ReadWrite.All permissions. To read or write this property in delegated scenarios, the admin must be assigned the Attribute Assignment Administrator role.- Returns:
- a
CustomSecurityAttributeValue
-
getDataSecurityAndGovernance
Gets the dataSecurityAndGovernance property value. The data security and governance settings for the user. Read-only. Nullable.- Returns:
- a
UserDataSecurityAndGovernance
-
getDepartment
Gets the department property value. The name of the department in which the user works. Maximum length is 64 characters. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, and eq on null values).- Returns:
- a
String
-
getDeviceEnrollmentLimit
Gets the deviceEnrollmentLimit property value. The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.- Returns:
- a
Integer
-
getDeviceManagementTroubleshootingEvents
@Nullable public List<DeviceManagementTroubleshootingEvent> getDeviceManagementTroubleshootingEvents()Gets the deviceManagementTroubleshootingEvents property value. The list of troubleshooting events for this user.- Returns:
- a
List<DeviceManagementTroubleshootingEvent>
-
getDirectReports
Gets the directReports property value. The users and contacts that report to the user. (The users and contacts that have their manager property set to this user.) Read-only. Nullable. Supports $expand.- Returns:
- a
List<DirectoryObject>
-
getDisplayName
Gets the displayName property value. The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and family name. This property is required when a user is created and it can't be cleared during updates. Maximum length is 256 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values), $orderby, and $search.- Returns:
- a
String
-
getDrive
Gets the drive property value. The user's OneDrive. Read-only.- Returns:
- a
Drive
-
getDrives
Gets the drives property value. A collection of drives available for this user. Read-only. -
getEmployeeExperience
Gets the employeeExperience property value. The employeeExperience property- Returns:
- a
EmployeeExperienceUser
-
getEmployeeHireDate
Gets the employeeHireDate property value. The date and time when the user was hired or will start work in a future hire. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).- Returns:
- a
OffsetDateTime
-
getEmployeeId
Gets the employeeId property value. The employee identifier assigned to the user by the organization. The maximum length is 16 characters. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getEmployeeLeaveDateTime
Gets the employeeLeaveDateTime property value. The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs at least one of the following Microsoft Entra roles: Lifecycle Workflows Administrator (least privilege), Global Reader. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user.- Returns:
- a
OffsetDateTime
-
getEmployeeOrgData
Gets the employeeOrgData property value. Represents organization data (for example, division and costCenter) associated with a user. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).- Returns:
- a
EmployeeOrgData
-
getEmployeeType
Gets the employeeType property value. Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith).- Returns:
- a
String
-
getEvents
Gets the events property value. The user's events. Default is to show Events under the Default Calendar. Read-only. Nullable. -
getExtensions
Gets the extensions property value. The collection of open extensions defined for the user. Read-only. Supports $expand. Nullable. -
getExternalUserState
Gets the externalUserState property value. For a guest invited to the tenant using the invitation API, this property represents the invited user's invitation status. For invited users, the state can be PendingAcceptance or Accepted, or null for all other users. Returned only on $select. Supports $filter (eq, ne, not , in).- Returns:
- a
String
-
getExternalUserStateChangeDateTime
Gets the externalUserStateChangeDateTime property value. Shows the timestamp for the latest change to the externalUserState property. Returned only on $select. Supports $filter (eq, ne, not , in).- Returns:
- a
OffsetDateTime
-
getFaxNumber
Gets the faxNumber property value. The fax number of the user. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classDirectoryObject- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFollowedSites
Gets the followedSites property value. The followedSites property -
getGivenName
Gets the givenName property value. The given name (first name) of the user. Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getHireDate
Gets the hireDate property value. The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. Returned only on $select. Note: This property is specific to SharePoint in Microsoft 365. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs.- Returns:
- a
OffsetDateTime
-
getIdentities
Gets the identities property value. Represents the identities that can be used to sign in to this user account. Microsoft (also known as a local account), organizations, or social identity providers such as Facebook, Google, and Microsoft can provide identity and tie it to a user account. It might contain multiple items with the same signInType value. Returned only on $select. Supports $filter (eq) with limitations.- Returns:
- a
List<ObjectIdentity>
-
getImAddresses
Gets the imAddresses property value. The instant message voice-over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only. Returned only on $select. Supports $filter (eq, not, ge, le, startsWith). -
getInferenceClassification
Gets the inferenceClassification property value. Relevance classification of the user's messages based on explicit designations that override inferred relevance or importance.- Returns:
- a
InferenceClassification
-
getInsights
Gets the insights property value. Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable.- Returns:
- a
ItemInsights
-
getInterests
Gets the interests property value. A list for the user to describe their interests. Returned only on $select. -
getIsManagementRestricted
Gets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit. If not set, the default value is null and the default behavior is false. Read-only. To manage a user who is a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. Returned only on $select.- Returns:
- a
Boolean
-
getIsResourceAccount
Gets the isResourceAccount property value. Don't use reserved for future use.- Returns:
- a
Boolean
-
getJobTitle
Gets the jobTitle property value. The user's job title. Maximum length is 128 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getJoinedTeams
Gets the joinedTeams property value. The joinedTeams property -
getLastPasswordChangeDateTime
Gets the lastPasswordChangeDateTime property value. The time when this Microsoft Entra user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select.- Returns:
- a
OffsetDateTime
-
getLegalAgeGroupClassification
Gets the legalAgeGroupClassification property value. Used by enterprise applications to determine the legal age group of the user. This property is read-only and calculated based on ageGroup and consentProvidedForMinor properties. Allowed values: null, Undefined, MinorWithOutParentalConsent, MinorWithParentalConsent, MinorNoParentalConsentRequired, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select.- Returns:
- a
String
-
getLicenseAssignmentStates
Gets the licenseAssignmentStates property value. State of license assignments for this user. Also indicates licenses that are directly assigned or the user inherited through group memberships. Read-only. Returned only on $select.- Returns:
- a
List<LicenseAssignmentState>
-
getLicenseDetails
Gets the licenseDetails property value. A collection of this user's license details. Read-only.- Returns:
- a
List<LicenseDetails>
-
getMail
Gets the mail property value. The SMTP address for the user, for example, jeff@contoso.com. Changes to this property update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, endsWith, and eq on null values).- Returns:
- a
String
-
getMailboxSettings
Gets the mailboxSettings property value. Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select.- Returns:
- a
MailboxSettings
-
getMailFolders
Gets the mailFolders property value. The user's mail folders. Read-only. Nullable.- Returns:
- a
List<MailFolder>
-
getMailNickname
Gets the mailNickname property value. The mail alias for the user. This property must be specified when a user is created. Maximum length is 64 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getManagedAppRegistrations
Gets the managedAppRegistrations property value. Zero or more managed app registrations that belong to the user.- Returns:
- a
List<ManagedAppRegistration>
-
getManagedDevices
Gets the managedDevices property value. The managed devices associated with the user.- Returns:
- a
List<ManagedDevice>
-
getManager
Gets the manager property value. The user or contact that is this user's manager. Read-only. Supports $expand.- Returns:
- a
DirectoryObject
-
getMemberOf
Gets the memberOf property value. The groups and directory roles that the user is a member of. Read-only. Nullable. Supports $expand.- Returns:
- a
List<DirectoryObject>
-
getMessages
Gets the messages property value. The messages in a mailbox or folder. Read-only. Nullable. -
getMobilePhone
Gets the mobilePhone property value. The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory. Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values) and $search.- Returns:
- a
String
-
getMySite
Gets the mySite property value. The URL for the user's site. Returned only on $select.- Returns:
- a
String
-
getOauth2PermissionGrants
Gets the oauth2PermissionGrants property value. The oauth2PermissionGrants property- Returns:
- a
List<OAuth2PermissionGrant>
-
getOfficeLocation
Gets the officeLocation property value. The office location in the user's place of business. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getOnenote
Gets the onenote property value. The onenote property- Returns:
- a
Onenote
-
getOnlineMeetings
Gets the onlineMeetings property value. Information about a meeting, including the URL used to join a meeting, the attendees list, and the description.- Returns:
- a
List<OnlineMeeting>
-
getOnPremisesDistinguishedName
Gets the onPremisesDistinguishedName property value. Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select.- Returns:
- a
String
-
getOnPremisesDomainName
Gets the onPremisesDomainName property value. Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select.- Returns:
- a
String
-
getOnPremisesExtensionAttributes
Gets the onPremisesExtensionAttributes property value. Contains extensionAttributes1-15 for the user. These extension attributes are also known as Exchange custom attributes 1-15. Each attribute can store up to 1024 characters. For an onPremisesSyncEnabled user, the source of authority for this set of properties is the on-premises and is read-only. For a cloud-only user (where onPremisesSyncEnabled is false), these properties can be set during the creation or update of a user object. For a cloud-only user previously synced from on-premises Active Directory, these properties are read-only in Microsoft Graph but can be fully managed through the Exchange Admin Center or the Exchange Online V2 module in PowerShell. Returned only on $select. Supports $filter (eq, ne, not, in).- Returns:
- a
OnPremisesExtensionAttributes
-
getOnPremisesImmutableId
Gets the onPremisesImmutableId property value. This property is used to associate an on-premises Active Directory user account to their Microsoft Entra user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).- Returns:
- a
String
-
getOnPremisesLastSyncDateTime
Gets the onPremisesLastSyncDateTime property value. Indicates the last time at which the object was synced with the on-premises directory; for example: 2013-02-16T03:04:54Z. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).- Returns:
- a
OffsetDateTime
-
getOnPremisesProvisioningErrors
Gets the onPremisesProvisioningErrors property value. Errors when using Microsoft synchronization product during provisioning. Returned only on $select. Supports $filter (eq, not, ge, le).- Returns:
- a
List<OnPremisesProvisioningError>
-
getOnPremisesSamAccountName
Gets the onPremisesSamAccountName property value. Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).- Returns:
- a
String
-
getOnPremisesSecurityIdentifier
Gets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq including on null values).- Returns:
- a
String
-
getOnPremisesSyncEnabled
Gets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Microsoft Entra ID. Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values).- Returns:
- a
Boolean
-
getOnPremisesUserPrincipalName
Gets the onPremisesUserPrincipalName property value. Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).- Returns:
- a
String
-
getOtherMails
Gets the otherMails property value. A list of other email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com']. Can store up to 250 values, each with a limit of 250 characters. NOTE: This property can't contain accent characters. Returned only on $select. Supports $filter (eq, not, ge, le, in, startsWith, endsWith, /$count eq 0, /$count ne 0). -
getOutlook
Gets the outlook property value. The outlook property- Returns:
- a
OutlookUser
-
getOwnedDevices
Gets the ownedDevices property value. Devices the user owns. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).- Returns:
- a
List<DirectoryObject>
-
getOwnedObjects
Gets the ownedObjects property value. Directory objects the user owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).- Returns:
- a
List<DirectoryObject>
-
getPasswordPolicies
Gets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two might be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Microsoft Entra password policies. Supports $filter (ne, not, and eq on null values).- Returns:
- a
String
-
getPasswordProfile
Gets the passwordProfile property value. Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). To update this property: User-PasswordProfile.ReadWrite.All is the least privileged permission to update this property. In delegated scenarios, the User Administrator Microsoft Entra role is the least privileged admin role supported to update this property for nonadmin users. Privileged Authentication Administrator is the least privileged role that's allowed to update this property for all administrators in the tenant. In general, the signed-in user must have a higher privileged administrator role as indicated in Who can reset passwords. In app-only scenarios, the calling app must be assigned a supported permission and at least the User Administrator Microsoft Entra role.- Returns:
- a
PasswordProfile
-
getPastProjects
Gets the pastProjects property value. A list for the user to enumerate their past projects. Returned only on $select. -
getPeople
Gets the people property value. People that are relevant to the user. Read-only. Nullable. -
getPermissionGrants
Gets the permissionGrants property value. List all resource-specific permission grants of a user.- Returns:
- a
List<ResourceSpecificPermissionGrant>
-
getPhoto
Gets the photo property value. The user's profile photo. Read-only.- Returns:
- a
ProfilePhoto
-
getPhotos
Gets the photos property value. The collection of the user's profile photos in different sizes. Read-only.- Returns:
- a
List<ProfilePhoto>
-
getPlanner
Gets the planner property value. Entry-point to the Planner resource that might exist for a user. Read-only.- Returns:
- a
PlannerUser
-
getPostalCode
Gets the postalCode property value. The postal code for the user's postal address. The postal code is specific to the user's country or region. In the United States of America, this attribute contains the ZIP code. Maximum length is 40 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getPreferredDataLocation
Gets the preferredDataLocation property value. The preferred data location for the user. For more information, see OneDrive Online Multi-Geo.- Returns:
- a
String
-
getPreferredLanguage
Gets the preferredLanguage property value. The preferred language for the user. The preferred language format is based on RFC 4646. The name is a combination of an ISO 639 two-letter lowercase culture code associated with the language, and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values)- Returns:
- a
String
-
getPreferredName
Gets the preferredName property value. The preferred name for the user. Not Supported. This attribute returns an empty string.Returned only on $select.- Returns:
- a
String
-
getPresence
Gets the presence property value. The presence property- Returns:
- a
Presence
-
getPrint
Gets the print property value. The print property- Returns:
- a
UserPrint
-
getProvisionedPlans
Gets the provisionedPlans property value. The plans that are provisioned for the user. Read-only. Not nullable. Returned only on $select. Supports $filter (eq, not, ge, le).- Returns:
- a
List<ProvisionedPlan>
-
getProxyAddresses
Gets the proxyAddresses property value. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. Changes to the mail property update this collection to include the value as an SMTP address. For more information, see mail and proxyAddresses properties. The proxy address prefixed with SMTP (capitalized) is the primary proxy address, while those addresses prefixed with smtp are the secondary proxy addresses. For Azure AD B2C accounts, this property has a limit of 10 unique addresses. Read-only in Microsoft Graph; you can update this property only through the Microsoft 365 admin center. Not nullable. Returned only on $select. Supports $filter (eq, not, ge, le, startsWith, endsWith, /$count eq 0, /$count ne 0). -
getRegisteredDevices
Gets the registeredDevices property value. Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects.- Returns:
- a
List<DirectoryObject>
-
getResponsibilities
Gets the responsibilities property value. A list for the user to enumerate their responsibilities. Returned only on $select. -
getSchools
Gets the schools property value. A list for the user to enumerate the schools they attended. Returned only on $select. -
getScopedRoleMemberOf
Gets the scopedRoleMemberOf property value. The scopedRoleMemberOf property- Returns:
- a
List<ScopedRoleMembership>
-
getSecurityIdentifier
Gets the securityIdentifier property value. Security identifier (SID) of the user, used in Windows scenarios. Read-only. Returned by default. Supports $select and $filter (eq, not, ge, le, startsWith).- Returns:
- a
String
-
getServiceProvisioningErrors
Gets the serviceProvisioningErrors property value. Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance).- Returns:
- a
List<ServiceProvisioningError>
-
getSettings
Gets the settings property value. The settings property- Returns:
- a
UserSettings
-
getShowInAddressList
Gets the showInAddressList property value. Do not use in Microsoft Graph. Manage this property through the Microsoft 365 admin center instead. Represents whether the user should be included in the Outlook global address list. See Known issue.- Returns:
- a
Boolean
-
getSignInActivity
Gets the signInActivity property value. Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require a Microsoft Entra ID P1 or P2 license and the AuditLog.Read.All permission.This property isn't returned for a user who never signed in or last signed in before April 2020.- Returns:
- a
SignInActivity
-
getSignInSessionsValidFromDateTime
Gets the signInSessionsValidFromDateTime property value. Any refresh tokens or session tokens (session cookies) issued before this time are invalid. Applications get an error when using an invalid refresh or session token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application needs to acquire a new refresh token by requesting the authorized endpoint. Read-only. Use revokeSignInSessions to reset. Returned only on $select.- Returns:
- a
OffsetDateTime
-
getSkills
Gets the skills property value. A list for the user to enumerate their skills. Returned only on $select. -
getSolutions
Gets the solutions property value. The identifier that relates the user to the working time schedule triggers. Read-Only. Nullable- Returns:
- a
UserSolutionRoot
-
getSponsors
Gets the sponsors property value. The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand.- Returns:
- a
List<DirectoryObject>
-
getState
Gets the state property value. The state or province in the user's address. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getStreetAddress
Gets the streetAddress property value. The street address of the user's place of business. Maximum length is 1,024 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getSurname
Gets the surname property value. The user's surname (family name or last name). Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getTeamwork
Gets the teamwork property value. A container for Microsoft Teams features available for the user. Read-only. Nullable.- Returns:
- a
UserTeamwork
-
getTodo
Gets the todo property value. Represents the To Do services available to a user.- Returns:
- a
Todo
-
getTransitiveMemberOf
Gets the transitiveMemberOf property value. The groups, including nested groups, and directory roles that a user is a member of. Nullable.- Returns:
- a
List<DirectoryObject>
-
getUsageLocation
Gets the usageLocation property value. A two-letter country code (ISO standard 3166). Required for users that are assigned licenses due to legal requirements to check for availability of services in countries/regions. Examples include: US, JP, and GB. Not nullable. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getUserPrincipalName
Gets the userPrincipalName property value. The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this value should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, ' . - _ ! # ^ ~. For the complete list of allowed characters, see username policies. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, endsWith) and $orderby.- Returns:
- a
String
-
getUserType
Gets the userType property value. A string value that can be used to classify user types in your directory. The possible values are Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for members and guests, see What are the default user permissions in Microsoft Entra ID?- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classDirectoryObject- Parameters:
writer- Serialization writer to use to serialize this model
-
setAboutMe
Sets the aboutMe property value. A freeform text entry field for the user to describe themselves. Returned only on $select.- Parameters:
value- Value to set for the aboutMe property.
-
setAccountEnabled
Sets the accountEnabled property value. true if the account is enabled; otherwise, false. This property is required when a user is created. Returned only on $select. Supports $filter (eq, ne, not, and in).- Parameters:
value- Value to set for the accountEnabled property.
-
setActivities
Sets the activities property value. The user's activities across devices. Read-only. Nullable.- Parameters:
value- Value to set for the activities property.
-
setAgeGroup
Sets the ageGroup property value. Sets the age group of the user. Allowed values: null, Minor, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).- Parameters:
value- Value to set for the ageGroup property.
-
setAgreementAcceptances
Sets the agreementAcceptances property value. The user's terms of use acceptance statuses. Read-only. Nullable.- Parameters:
value- Value to set for the agreementAcceptances property.
-
setAppRoleAssignments
Sets the appRoleAssignments property value. Represents the app roles a user is granted for an application. Supports $expand.- Parameters:
value- Value to set for the appRoleAssignments property.
-
setAssignedLicenses
Sets the assignedLicenses property value. The licenses that are assigned to the user, including inherited (group-based) licenses. This property doesn't differentiate between directly assigned and inherited licenses. Use the licenseAssignmentStates property to identify the directly assigned and inherited licenses. Not nullable. Returned only on $select. Supports $filter (eq, not, /$count eq 0, /$count ne 0).- Parameters:
value- Value to set for the assignedLicenses property.
-
setAssignedPlans
Sets the assignedPlans property value. The plans that are assigned to the user. Read-only. Not nullable. Returned only on $select. Supports $filter (eq and not).- Parameters:
value- Value to set for the assignedPlans property.
-
setAuthentication
Sets the authentication property value. The authentication methods that are supported for the user.- Parameters:
value- Value to set for the authentication property.
-
setAuthorizationInfo
Sets the authorizationInfo property value. The authorizationInfo property- Parameters:
value- Value to set for the authorizationInfo property.
-
setBirthday
Sets the birthday property value. The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. Returned only on $select.- Parameters:
value- Value to set for the birthday property.
-
setBusinessPhones
Sets the businessPhones property value. The telephone numbers for the user. NOTE: Although it's a string collection, only one number can be set for this property. Read-only for users synced from the on-premises directory. Returned by default. Supports $filter (eq, not, ge, le, startsWith).- Parameters:
value- Value to set for the businessPhones property.
-
setCalendar
Sets the calendar property value. The user's primary calendar. Read-only.- Parameters:
value- Value to set for the calendar property.
-
setCalendarGroups
Sets the calendarGroups property value. The user's calendar groups. Read-only. Nullable.- Parameters:
value- Value to set for the calendarGroups property.
-
setCalendars
Sets the calendars property value. The user's calendars. Read-only. Nullable.- Parameters:
value- Value to set for the calendars property.
-
setCalendarView
Sets the calendarView property value. The calendar view for the calendar. Read-only. Nullable.- Parameters:
value- Value to set for the calendarView property.
-
setChats
Sets the chats property value. The chats property- Parameters:
value- Value to set for the chats property.
-
setCity
Sets the city property value. The city where the user is located. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the city property.
-
setCloudClipboard
Sets the cloudClipboard property value. The cloudClipboard property- Parameters:
value- Value to set for the cloudClipboard property.
-
setCloudPCs
Sets the cloudPCs property value. The user's Cloud PCs. Read-only. Nullable.- Parameters:
value- Value to set for the cloudPCs property.
-
setCompanyName
Sets the companyName property value. The name of the company that the user is associated with. This property can be useful for describing the company that a guest comes from. The maximum length is 64 characters.Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the companyName property.
-
setConsentProvidedForMinor
Sets the consentProvidedForMinor property value. Sets whether consent was obtained for minors. Allowed values: null, Granted, Denied, and NotRequired. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).- Parameters:
value- Value to set for the consentProvidedForMinor property.
-
setContactFolders
Sets the contactFolders property value. The user's contacts folders. Read-only. Nullable.- Parameters:
value- Value to set for the contactFolders property.
-
setContacts
Sets the contacts property value. The user's contacts. Read-only. Nullable.- Parameters:
value- Value to set for the contacts property.
-
setCountry
Sets the country property value. The country or region where the user is located; for example, US or UK. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the country property.
-
setCreatedDateTime
Sets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and UTC. The value can't be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Microsoft Entra ID. Property is null for some users created before June 2018 and on-premises users that were synced to Microsoft Entra ID before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).- Parameters:
value- Value to set for the createdDateTime property.
-
setCreatedObjects
Sets the createdObjects property value. Directory objects that the user created. Read-only. Nullable.- Parameters:
value- Value to set for the createdObjects property.
-
setCreationType
Sets the creationType property value. Indicates whether the user account was created through one of the following methods: As a regular school or work account (null). As an external account (Invitation). As a local account for an Azure Active Directory B2C tenant (LocalAccount). Through self-service sign-up by an internal user using email verification (EmailVerified). Through self-service sign-up by a guest signing up through a link that is part of a user flow (SelfServiceSignUp). Read-only.Returned only on $select. Supports $filter (eq, ne, not, in).- Parameters:
value- Value to set for the creationType property.
-
setCustomSecurityAttributes
Sets the customSecurityAttributes property value. An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). The filter value is case-sensitive. To read this property, the calling app must be assigned the CustomSecAttributeAssignment.Read.All permission. To write this property, the calling app must be assigned the CustomSecAttributeAssignment.ReadWrite.All permissions. To read or write this property in delegated scenarios, the admin must be assigned the Attribute Assignment Administrator role.- Parameters:
value- Value to set for the customSecurityAttributes property.
-
setDataSecurityAndGovernance
Sets the dataSecurityAndGovernance property value. The data security and governance settings for the user. Read-only. Nullable.- Parameters:
value- Value to set for the dataSecurityAndGovernance property.
-
setDepartment
Sets the department property value. The name of the department in which the user works. Maximum length is 64 characters. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, and eq on null values).- Parameters:
value- Value to set for the department property.
-
setDeviceEnrollmentLimit
Sets the deviceEnrollmentLimit property value. The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.- Parameters:
value- Value to set for the deviceEnrollmentLimit property.
-
setDeviceManagementTroubleshootingEvents
public void setDeviceManagementTroubleshootingEvents(@Nullable List<DeviceManagementTroubleshootingEvent> value) Sets the deviceManagementTroubleshootingEvents property value. The list of troubleshooting events for this user.- Parameters:
value- Value to set for the deviceManagementTroubleshootingEvents property.
-
setDirectReports
Sets the directReports property value. The users and contacts that report to the user. (The users and contacts that have their manager property set to this user.) Read-only. Nullable. Supports $expand.- Parameters:
value- Value to set for the directReports property.
-
setDisplayName
Sets the displayName property value. The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and family name. This property is required when a user is created and it can't be cleared during updates. Maximum length is 256 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values), $orderby, and $search.- Parameters:
value- Value to set for the displayName property.
-
setDrive
Sets the drive property value. The user's OneDrive. Read-only.- Parameters:
value- Value to set for the drive property.
-
setDrives
Sets the drives property value. A collection of drives available for this user. Read-only.- Parameters:
value- Value to set for the drives property.
-
setEmployeeExperience
Sets the employeeExperience property value. The employeeExperience property- Parameters:
value- Value to set for the employeeExperience property.
-
setEmployeeHireDate
Sets the employeeHireDate property value. The date and time when the user was hired or will start work in a future hire. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).- Parameters:
value- Value to set for the employeeHireDate property.
-
setEmployeeId
Sets the employeeId property value. The employee identifier assigned to the user by the organization. The maximum length is 16 characters. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the employeeId property.
-
setEmployeeLeaveDateTime
Sets the employeeLeaveDateTime property value. The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs at least one of the following Microsoft Entra roles: Lifecycle Workflows Administrator (least privilege), Global Reader. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user.- Parameters:
value- Value to set for the employeeLeaveDateTime property.
-
setEmployeeOrgData
Sets the employeeOrgData property value. Represents organization data (for example, division and costCenter) associated with a user. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).- Parameters:
value- Value to set for the employeeOrgData property.
-
setEmployeeType
Sets the employeeType property value. Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith).- Parameters:
value- Value to set for the employeeType property.
-
setEvents
Sets the events property value. The user's events. Default is to show Events under the Default Calendar. Read-only. Nullable.- Parameters:
value- Value to set for the events property.
-
setExtensions
Sets the extensions property value. The collection of open extensions defined for the user. Read-only. Supports $expand. Nullable.- Parameters:
value- Value to set for the extensions property.
-
setExternalUserState
Sets the externalUserState property value. For a guest invited to the tenant using the invitation API, this property represents the invited user's invitation status. For invited users, the state can be PendingAcceptance or Accepted, or null for all other users. Returned only on $select. Supports $filter (eq, ne, not , in).- Parameters:
value- Value to set for the externalUserState property.
-
setExternalUserStateChangeDateTime
Sets the externalUserStateChangeDateTime property value. Shows the timestamp for the latest change to the externalUserState property. Returned only on $select. Supports $filter (eq, ne, not , in).- Parameters:
value- Value to set for the externalUserStateChangeDateTime property.
-
setFaxNumber
Sets the faxNumber property value. The fax number of the user. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the faxNumber property.
-
setFollowedSites
Sets the followedSites property value. The followedSites property- Parameters:
value- Value to set for the followedSites property.
-
setGivenName
Sets the givenName property value. The given name (first name) of the user. Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the givenName property.
-
setHireDate
Sets the hireDate property value. The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. Returned only on $select. Note: This property is specific to SharePoint in Microsoft 365. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs.- Parameters:
value- Value to set for the hireDate property.
-
setIdentities
Sets the identities property value. Represents the identities that can be used to sign in to this user account. Microsoft (also known as a local account), organizations, or social identity providers such as Facebook, Google, and Microsoft can provide identity and tie it to a user account. It might contain multiple items with the same signInType value. Returned only on $select. Supports $filter (eq) with limitations.- Parameters:
value- Value to set for the identities property.
-
setImAddresses
Sets the imAddresses property value. The instant message voice-over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only. Returned only on $select. Supports $filter (eq, not, ge, le, startsWith).- Parameters:
value- Value to set for the imAddresses property.
-
setInferenceClassification
Sets the inferenceClassification property value. Relevance classification of the user's messages based on explicit designations that override inferred relevance or importance.- Parameters:
value- Value to set for the inferenceClassification property.
-
setInsights
Sets the insights property value. Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable.- Parameters:
value- Value to set for the insights property.
-
setInterests
Sets the interests property value. A list for the user to describe their interests. Returned only on $select.- Parameters:
value- Value to set for the interests property.
-
setIsManagementRestricted
Sets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit. If not set, the default value is null and the default behavior is false. Read-only. To manage a user who is a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. Returned only on $select.- Parameters:
value- Value to set for the isManagementRestricted property.
-
setIsResourceAccount
Sets the isResourceAccount property value. Don't use reserved for future use.- Parameters:
value- Value to set for the isResourceAccount property.
-
setJobTitle
Sets the jobTitle property value. The user's job title. Maximum length is 128 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the jobTitle property.
-
setJoinedTeams
Sets the joinedTeams property value. The joinedTeams property- Parameters:
value- Value to set for the joinedTeams property.
-
setLastPasswordChangeDateTime
Sets the lastPasswordChangeDateTime property value. The time when this Microsoft Entra user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select.- Parameters:
value- Value to set for the lastPasswordChangeDateTime property.
-
setLegalAgeGroupClassification
Sets the legalAgeGroupClassification property value. Used by enterprise applications to determine the legal age group of the user. This property is read-only and calculated based on ageGroup and consentProvidedForMinor properties. Allowed values: null, Undefined, MinorWithOutParentalConsent, MinorWithParentalConsent, MinorNoParentalConsentRequired, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select.- Parameters:
value- Value to set for the legalAgeGroupClassification property.
-
setLicenseAssignmentStates
Sets the licenseAssignmentStates property value. State of license assignments for this user. Also indicates licenses that are directly assigned or the user inherited through group memberships. Read-only. Returned only on $select.- Parameters:
value- Value to set for the licenseAssignmentStates property.
-
setLicenseDetails
Sets the licenseDetails property value. A collection of this user's license details. Read-only.- Parameters:
value- Value to set for the licenseDetails property.
-
setMail
Sets the mail property value. The SMTP address for the user, for example, jeff@contoso.com. Changes to this property update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, endsWith, and eq on null values).- Parameters:
value- Value to set for the mail property.
-
setMailboxSettings
Sets the mailboxSettings property value. Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select.- Parameters:
value- Value to set for the mailboxSettings property.
-
setMailFolders
Sets the mailFolders property value. The user's mail folders. Read-only. Nullable.- Parameters:
value- Value to set for the mailFolders property.
-
setMailNickname
Sets the mailNickname property value. The mail alias for the user. This property must be specified when a user is created. Maximum length is 64 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the mailNickname property.
-
setManagedAppRegistrations
Sets the managedAppRegistrations property value. Zero or more managed app registrations that belong to the user.- Parameters:
value- Value to set for the managedAppRegistrations property.
-
setManagedDevices
Sets the managedDevices property value. The managed devices associated with the user.- Parameters:
value- Value to set for the managedDevices property.
-
setManager
Sets the manager property value. The user or contact that is this user's manager. Read-only. Supports $expand.- Parameters:
value- Value to set for the manager property.
-
setMemberOf
Sets the memberOf property value. The groups and directory roles that the user is a member of. Read-only. Nullable. Supports $expand.- Parameters:
value- Value to set for the memberOf property.
-
setMessages
Sets the messages property value. The messages in a mailbox or folder. Read-only. Nullable.- Parameters:
value- Value to set for the messages property.
-
setMobilePhone
Sets the mobilePhone property value. The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory. Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values) and $search.- Parameters:
value- Value to set for the mobilePhone property.
-
setMySite
Sets the mySite property value. The URL for the user's site. Returned only on $select.- Parameters:
value- Value to set for the mySite property.
-
setOauth2PermissionGrants
Sets the oauth2PermissionGrants property value. The oauth2PermissionGrants property- Parameters:
value- Value to set for the oauth2PermissionGrants property.
-
setOfficeLocation
Sets the officeLocation property value. The office location in the user's place of business. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the officeLocation property.
-
setOnenote
Sets the onenote property value. The onenote property- Parameters:
value- Value to set for the onenote property.
-
setOnlineMeetings
Sets the onlineMeetings property value. Information about a meeting, including the URL used to join a meeting, the attendees list, and the description.- Parameters:
value- Value to set for the onlineMeetings property.
-
setOnPremisesDistinguishedName
Sets the onPremisesDistinguishedName property value. Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select.- Parameters:
value- Value to set for the onPremisesDistinguishedName property.
-
setOnPremisesDomainName
Sets the onPremisesDomainName property value. Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select.- Parameters:
value- Value to set for the onPremisesDomainName property.
-
setOnPremisesExtensionAttributes
Sets the onPremisesExtensionAttributes property value. Contains extensionAttributes1-15 for the user. These extension attributes are also known as Exchange custom attributes 1-15. Each attribute can store up to 1024 characters. For an onPremisesSyncEnabled user, the source of authority for this set of properties is the on-premises and is read-only. For a cloud-only user (where onPremisesSyncEnabled is false), these properties can be set during the creation or update of a user object. For a cloud-only user previously synced from on-premises Active Directory, these properties are read-only in Microsoft Graph but can be fully managed through the Exchange Admin Center or the Exchange Online V2 module in PowerShell. Returned only on $select. Supports $filter (eq, ne, not, in).- Parameters:
value- Value to set for the onPremisesExtensionAttributes property.
-
setOnPremisesImmutableId
Sets the onPremisesImmutableId property value. This property is used to associate an on-premises Active Directory user account to their Microsoft Entra user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).- Parameters:
value- Value to set for the onPremisesImmutableId property.
-
setOnPremisesLastSyncDateTime
Sets the onPremisesLastSyncDateTime property value. Indicates the last time at which the object was synced with the on-premises directory; for example: 2013-02-16T03:04:54Z. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).- Parameters:
value- Value to set for the onPremisesLastSyncDateTime property.
-
setOnPremisesProvisioningErrors
Sets the onPremisesProvisioningErrors property value. Errors when using Microsoft synchronization product during provisioning. Returned only on $select. Supports $filter (eq, not, ge, le).- Parameters:
value- Value to set for the onPremisesProvisioningErrors property.
-
setOnPremisesSamAccountName
Sets the onPremisesSamAccountName property value. Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).- Parameters:
value- Value to set for the onPremisesSamAccountName property.
-
setOnPremisesSecurityIdentifier
Sets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq including on null values).- Parameters:
value- Value to set for the onPremisesSecurityIdentifier property.
-
setOnPremisesSyncEnabled
Sets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Microsoft Entra ID. Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values).- Parameters:
value- Value to set for the onPremisesSyncEnabled property.
-
setOnPremisesUserPrincipalName
Sets the onPremisesUserPrincipalName property value. Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).- Parameters:
value- Value to set for the onPremisesUserPrincipalName property.
-
setOtherMails
Sets the otherMails property value. A list of other email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com']. Can store up to 250 values, each with a limit of 250 characters. NOTE: This property can't contain accent characters. Returned only on $select. Supports $filter (eq, not, ge, le, in, startsWith, endsWith, /$count eq 0, /$count ne 0).- Parameters:
value- Value to set for the otherMails property.
-
setOutlook
Sets the outlook property value. The outlook property- Parameters:
value- Value to set for the outlook property.
-
setOwnedDevices
Sets the ownedDevices property value. Devices the user owns. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).- Parameters:
value- Value to set for the ownedDevices property.
-
setOwnedObjects
Sets the ownedObjects property value. Directory objects the user owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).- Parameters:
value- Value to set for the ownedObjects property.
-
setPasswordPolicies
Sets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two might be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Microsoft Entra password policies. Supports $filter (ne, not, and eq on null values).- Parameters:
value- Value to set for the passwordPolicies property.
-
setPasswordProfile
Sets the passwordProfile property value. Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). To update this property: User-PasswordProfile.ReadWrite.All is the least privileged permission to update this property. In delegated scenarios, the User Administrator Microsoft Entra role is the least privileged admin role supported to update this property for nonadmin users. Privileged Authentication Administrator is the least privileged role that's allowed to update this property for all administrators in the tenant. In general, the signed-in user must have a higher privileged administrator role as indicated in Who can reset passwords. In app-only scenarios, the calling app must be assigned a supported permission and at least the User Administrator Microsoft Entra role.- Parameters:
value- Value to set for the passwordProfile property.
-
setPastProjects
Sets the pastProjects property value. A list for the user to enumerate their past projects. Returned only on $select.- Parameters:
value- Value to set for the pastProjects property.
-
setPeople
Sets the people property value. People that are relevant to the user. Read-only. Nullable.- Parameters:
value- Value to set for the people property.
-
setPermissionGrants
Sets the permissionGrants property value. List all resource-specific permission grants of a user.- Parameters:
value- Value to set for the permissionGrants property.
-
setPhoto
Sets the photo property value. The user's profile photo. Read-only.- Parameters:
value- Value to set for the photo property.
-
setPhotos
Sets the photos property value. The collection of the user's profile photos in different sizes. Read-only.- Parameters:
value- Value to set for the photos property.
-
setPlanner
Sets the planner property value. Entry-point to the Planner resource that might exist for a user. Read-only.- Parameters:
value- Value to set for the planner property.
-
setPostalCode
Sets the postalCode property value. The postal code for the user's postal address. The postal code is specific to the user's country or region. In the United States of America, this attribute contains the ZIP code. Maximum length is 40 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the postalCode property.
-
setPreferredDataLocation
Sets the preferredDataLocation property value. The preferred data location for the user. For more information, see OneDrive Online Multi-Geo.- Parameters:
value- Value to set for the preferredDataLocation property.
-
setPreferredLanguage
Sets the preferredLanguage property value. The preferred language for the user. The preferred language format is based on RFC 4646. The name is a combination of an ISO 639 two-letter lowercase culture code associated with the language, and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values)- Parameters:
value- Value to set for the preferredLanguage property.
-
setPreferredName
Sets the preferredName property value. The preferred name for the user. Not Supported. This attribute returns an empty string.Returned only on $select.- Parameters:
value- Value to set for the preferredName property.
-
setPresence
Sets the presence property value. The presence property- Parameters:
value- Value to set for the presence property.
-
setPrint
Sets the print property value. The print property- Parameters:
value- Value to set for the print property.
-
setProvisionedPlans
Sets the provisionedPlans property value. The plans that are provisioned for the user. Read-only. Not nullable. Returned only on $select. Supports $filter (eq, not, ge, le).- Parameters:
value- Value to set for the provisionedPlans property.
-
setProxyAddresses
Sets the proxyAddresses property value. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. Changes to the mail property update this collection to include the value as an SMTP address. For more information, see mail and proxyAddresses properties. The proxy address prefixed with SMTP (capitalized) is the primary proxy address, while those addresses prefixed with smtp are the secondary proxy addresses. For Azure AD B2C accounts, this property has a limit of 10 unique addresses. Read-only in Microsoft Graph; you can update this property only through the Microsoft 365 admin center. Not nullable. Returned only on $select. Supports $filter (eq, not, ge, le, startsWith, endsWith, /$count eq 0, /$count ne 0).- Parameters:
value- Value to set for the proxyAddresses property.
-
setRegisteredDevices
Sets the registeredDevices property value. Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects.- Parameters:
value- Value to set for the registeredDevices property.
-
setResponsibilities
Sets the responsibilities property value. A list for the user to enumerate their responsibilities. Returned only on $select.- Parameters:
value- Value to set for the responsibilities property.
-
setSchools
Sets the schools property value. A list for the user to enumerate the schools they attended. Returned only on $select.- Parameters:
value- Value to set for the schools property.
-
setScopedRoleMemberOf
Sets the scopedRoleMemberOf property value. The scopedRoleMemberOf property- Parameters:
value- Value to set for the scopedRoleMemberOf property.
-
setSecurityIdentifier
Sets the securityIdentifier property value. Security identifier (SID) of the user, used in Windows scenarios. Read-only. Returned by default. Supports $select and $filter (eq, not, ge, le, startsWith).- Parameters:
value- Value to set for the securityIdentifier property.
-
setServiceProvisioningErrors
Sets the serviceProvisioningErrors property value. Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance).- Parameters:
value- Value to set for the serviceProvisioningErrors property.
-
setSettings
Sets the settings property value. The settings property- Parameters:
value- Value to set for the settings property.
-
setShowInAddressList
Sets the showInAddressList property value. Do not use in Microsoft Graph. Manage this property through the Microsoft 365 admin center instead. Represents whether the user should be included in the Outlook global address list. See Known issue.- Parameters:
value- Value to set for the showInAddressList property.
-
setSignInActivity
Sets the signInActivity property value. Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require a Microsoft Entra ID P1 or P2 license and the AuditLog.Read.All permission.This property isn't returned for a user who never signed in or last signed in before April 2020.- Parameters:
value- Value to set for the signInActivity property.
-
setSignInSessionsValidFromDateTime
Sets the signInSessionsValidFromDateTime property value. Any refresh tokens or session tokens (session cookies) issued before this time are invalid. Applications get an error when using an invalid refresh or session token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application needs to acquire a new refresh token by requesting the authorized endpoint. Read-only. Use revokeSignInSessions to reset. Returned only on $select.- Parameters:
value- Value to set for the signInSessionsValidFromDateTime property.
-
setSkills
Sets the skills property value. A list for the user to enumerate their skills. Returned only on $select.- Parameters:
value- Value to set for the skills property.
-
setSolutions
Sets the solutions property value. The identifier that relates the user to the working time schedule triggers. Read-Only. Nullable- Parameters:
value- Value to set for the solutions property.
-
setSponsors
Sets the sponsors property value. The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand.- Parameters:
value- Value to set for the sponsors property.
-
setState
Sets the state property value. The state or province in the user's address. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the state property.
-
setStreetAddress
Sets the streetAddress property value. The street address of the user's place of business. Maximum length is 1,024 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the streetAddress property.
-
setSurname
Sets the surname property value. The user's surname (family name or last name). Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the surname property.
-
setTeamwork
Sets the teamwork property value. A container for Microsoft Teams features available for the user. Read-only. Nullable.- Parameters:
value- Value to set for the teamwork property.
-
setTodo
Sets the todo property value. Represents the To Do services available to a user.- Parameters:
value- Value to set for the todo property.
-
setTransitiveMemberOf
Sets the transitiveMemberOf property value. The groups, including nested groups, and directory roles that a user is a member of. Nullable.- Parameters:
value- Value to set for the transitiveMemberOf property.
-
setUsageLocation
Sets the usageLocation property value. A two-letter country code (ISO standard 3166). Required for users that are assigned licenses due to legal requirements to check for availability of services in countries/regions. Examples include: US, JP, and GB. Not nullable. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the usageLocation property.
-
setUserPrincipalName
Sets the userPrincipalName property value. The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this value should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, ' . - _ ! # ^ ~. For the complete list of allowed characters, see username policies. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, endsWith) and $orderby.- Parameters:
value- Value to set for the userPrincipalName property.
-
setUserType
Sets the userType property value. A string value that can be used to classify user types in your directory. The possible values are Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for members and guests, see What are the default user permissions in Microsoft Entra ID?- Parameters:
value- Value to set for the userType property.
-