MicrosoftGraphUserInner Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphDirectoryObjectInner - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphUserInner
- com.
- com.
- com.
public final class MicrosoftGraphUserInner
extends MicrosoftGraphDirectoryObjectInner
user Represents an Azure Active Directory user object.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphUserInner() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
aboutMe()
Get the about |
Boolean |
accountEnabled()
Get the account |
List<Microsoft |
activities()
Get the activities property: The user's activities across devices. |
Map<String,Object> |
additionalProperties()
Get the additional |
String |
ageGroup()
Get the age |
List<Microsoft |
appRoleAssignments()
Get the app |
List<Microsoft |
assignedLicenses()
Get the assigned |
List<Microsoft |
assignedPlans()
Get the assigned |
Offset |
birthday()
Get the birthday property: The birthday of the user. |
List<String> |
businessPhones()
Get the business |
Microsoft |
calendar()
Get the calendar property: calendar. |
List<Microsoft |
calendarGroups()
Get the calendar |
List<Microsoft |
calendarView()
Get the calendar |
List<Microsoft |
calendars()
Get the calendars property: The user's calendars. |
String |
city()
Get the city property: The city in which the user is located. |
String |
companyName()
Get the company |
String |
consentProvidedForMinor()
Get the consent |
List<Microsoft |
contactFolders()
Get the contact |
List<Microsoft |
contacts()
Get the contacts property: The user's contacts. |
String |
country()
Get the country property: The country/region in which the user is located; for example, 'US' or 'UK'. |
Offset |
createdDateTime()
Get the created |
List<Microsoft |
createdObjects()
Get the created |
String |
creationType()
Get the creation |
String |
department()
Get the department property: The name for the department in which the user works. |
Integer |
deviceEnrollmentLimit()
Get the device |
List<Microsoft |
deviceManagementTroubleshootingEvents()
Get the device |
List<Microsoft |
directReports()
Get the direct |
String |
displayName()
Get the display |
Microsoft |
drive()
Get the drive property: drive. |
List<Microsoft |
drives()
Get the drives property: A collection of drives available for this user. |
Offset |
employeeHireDate()
Get the employee |
String |
employeeId()
Get the employee |
Microsoft |
employeeOrgData()
Get the employee |
String |
employeeType()
Get the employee |
List<Microsoft |
events()
Get the events property: The user's events. |
List<Microsoft |
extensions()
Get the extensions property: The collection of open extensions defined for the user. |
String |
externalUserState()
Get the external |
Offset |
externalUserStateChangeDateTime()
Get the external |
String |
faxNumber()
Get the fax |
List<Microsoft |
followedSites()
Get the followed |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
String |
givenName()
Get the given |
Offset |
hireDate()
Get the hire |
List<Microsoft |
identities()
Get the identities property: Represents the identities that can be used to sign in to this user account. |
List<String> |
imAddresses()
Get the im |
Microsoft |
inferenceClassification()
Get the inference |
Microsoft |
insights()
Get the insights property: office |
List<String> |
interests()
Get the interests property: A list for the user to describe their interests. |
Boolean |
isResourceAccount()
Get the is |
String |
jobTitle()
Get the job |
List<Microsoft |
joinedTeams()
Get the joined |
Offset |
lastPasswordChangeDateTime()
Get the last |
String |
legalAgeGroupClassification()
Get the legal |
List<Microsoft |
licenseAssignmentStates()
Get the license |
List<Microsoft |
licenseDetails()
Get the license |
String |
mail()
Get the mail property: The SMTP address for the user, for example, 'jeff@contoso. |
List<Microsoft |
mailFolders()
Get the mail |
String |
mailNickname()
Get the mail |
Microsoft |
mailboxSettings()
Get the mailbox |
List<Microsoft |
managedAppRegistrations()
Get the managed |
List<Microsoft |
managedDevices()
Get the managed |
Microsoft |
manager()
Get the manager property: Represents an Azure Active Directory object. |
List<Microsoft |
memberOf()
Get the member |
List<Microsoft |
messages()
Get the messages property: The messages in a mailbox or folder. |
String |
mobilePhone()
Get the mobile |
String |
mySite()
Get the my |
List<Microsoft |
oauth2PermissionGrants()
Get the oauth2Permission |
String |
officeLocation()
Get the office |
String |
onPremisesDistinguishedName()
Get the on |
String |
onPremisesDomainName()
Get the on |
Microsoft |
onPremisesExtensionAttributes()
Get the on |
String |
onPremisesImmutableId()
Get the on |
Offset |
onPremisesLastSyncDateTime()
Get the on |
List<Microsoft |
onPremisesProvisioningErrors()
Get the on |
String |
onPremisesSamAccountName()
Get the on |
String |
onPremisesSecurityIdentifier()
Get the on |
Boolean |
onPremisesSyncEnabled()
Get the on |
String |
onPremisesUserPrincipalName()
Get the on |
Microsoft |
onenote()
Get the onenote property: onenote. |
List<Microsoft |
onlineMeetings()
Get the online |
List<String> |
otherMails()
Get the other |
Microsoft |
outlook()
Get the outlook property: outlook |
List<Microsoft |
ownedDevices()
Get the owned |
List<Microsoft |
ownedObjects()
Get the owned |
String |
passwordPolicies()
Get the password |
Microsoft |
passwordProfile()
Get the password |
List<String> |
pastProjects()
Get the past |
List<Microsoft |
people()
Get the people property: People that are relevant to the user. |
Microsoft |
photo()
Get the photo property: profile |
List<Microsoft |
photos()
Get the photos property: The photos property. |
Microsoft |
planner()
Get the planner property: planner |
String |
postalCode()
Get the postal |
String |
preferredLanguage()
Get the preferred |
String |
preferredName()
Get the preferred |
Microsoft |
presence()
Get the presence property: presence. |
List<Microsoft |
provisionedPlans()
Get the provisioned |
List<String> |
proxyAddresses()
Get the proxy |
List<Microsoft |
registeredDevices()
Get the registered |
List<String> |
responsibilities()
Get the responsibilities property: A list for the user to enumerate their responsibilities. |
List<String> |
schools()
Get the schools property: A list for the user to enumerate the schools they have attended. |
List<Microsoft |
scopedRoleMemberOf()
Get the scoped |
Microsoft |
settings()
Get the settings property: user |
Boolean |
showInAddressList()
Get the show |
Offset |
signInSessionsValidFromDateTime()
Get the sign |
List<String> |
skills()
Get the skills property: A list for the user to enumerate their skills. |
String |
state()
Get the state property: The state or province in the user's address. |
String |
streetAddress()
Get the street |
String |
surname()
Get the surname property: The user's surname (family name or last name). |
Microsoft |
teamwork()
Get the teamwork property: user |
Json |
toJson(JsonWriter jsonWriter) |
Microsoft |
todo()
Get the todo property: todo. |
List<Microsoft |
transitiveMemberOf()
Get the transitive |
String |
usageLocation()
Get the usage |
String |
userPrincipalName()
Get the user |
String |
userType()
Get the user |
void |
validate()
Validates the instance. |
Microsoft |
withAboutMe(String aboutMe)
Set the about |
Microsoft |
withAccountEnabled(Boolean accountEnabled)
Set the account |
Microsoft |
withActivities(List<MicrosoftGraphUserActivity> activities)
Set the activities property: The user's activities across devices. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAgeGroup(String ageGroup)
Set the age |
Microsoft |
withAppRoleAssignments(List<MicrosoftGraphAppRoleAssignment> appRoleAssignments)
Set the app |
Microsoft |
withAssignedLicenses(List<MicrosoftGraphAssignedLicense> assignedLicenses)
Set the assigned |
Microsoft |
withAssignedPlans(List<MicrosoftGraphAssignedPlan> assignedPlans)
Set the assigned |
Microsoft |
withBirthday(OffsetDateTime birthday)
Set the birthday property: The birthday of the user. |
Microsoft |
withBusinessPhones(List<String> businessPhones)
Set the business |
Microsoft |
withCalendar(MicrosoftGraphCalendar calendar)
Set the calendar property: calendar. |
Microsoft |
withCalendarGroups(List<MicrosoftGraphCalendarGroup> calendarGroups)
Set the calendar |
Microsoft |
withCalendarView(List<MicrosoftGraphEvent> calendarView)
Set the calendar |
Microsoft |
withCalendars(List<MicrosoftGraphCalendar> calendars)
Set the calendars property: The user's calendars. |
Microsoft |
withCity(String city)
Set the city property: The city in which the user is located. |
Microsoft |
withCompanyName(String companyName)
Set the company |
Microsoft |
withConsentProvidedForMinor(String consentProvidedForMinor)
Set the consent |
Microsoft |
withContactFolders(List<MicrosoftGraphContactFolder> contactFolders)
Set the contact |
Microsoft |
withContacts(List<MicrosoftGraphContact> contacts)
Set the contacts property: The user's contacts. |
Microsoft |
withCountry(String country)
Set the country property: The country/region in which the user is located; for example, 'US' or 'UK'. |
Microsoft |
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the created |
Microsoft |
withCreatedObjects(List<MicrosoftGraphDirectoryObjectInner> createdObjects)
Set the created |
Microsoft |
withCreationType(String creationType)
Set the creation |
Microsoft |
withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deleted |
Microsoft |
withDepartment(String department)
Set the department property: The name for the department in which the user works. |
Microsoft |
withDeviceEnrollmentLimit(Integer deviceEnrollmentLimit)
Set the device |
Microsoft |
withDeviceManagementTroubleshootingEvents(List<MicrosoftGraphDeviceManagementTroubleshootingEvent> deviceManagementTroubleshootingEvents)
Set the device |
Microsoft |
withDirectReports(List<MicrosoftGraphDirectoryObjectInner> directReports)
Set the direct |
Microsoft |
withDisplayName(String displayName)
Set the display |
Microsoft |
withDrive(MicrosoftGraphDrive drive)
Set the drive property: drive. |
Microsoft |
withDrives(List<MicrosoftGraphDrive> drives)
Set the drives property: A collection of drives available for this user. |
Microsoft |
withEmployeeHireDate(OffsetDateTime employeeHireDate)
Set the employee |
Microsoft |
withEmployeeId(String employeeId)
Set the employee |
Microsoft |
withEmployeeOrgData(MicrosoftGraphEmployeeOrgData employeeOrgData)
Set the employee |
Microsoft |
withEmployeeType(String employeeType)
Set the employee |
Microsoft |
withEvents(List<MicrosoftGraphEvent> events)
Set the events property: The user's events. |
Microsoft |
withExtensions(List<MicrosoftGraphExtension> extensions)
Set the extensions property: The collection of open extensions defined for the user. |
Microsoft |
withExternalUserState(String externalUserState)
Set the external |
Microsoft |
withExternalUserStateChangeDateTime(OffsetDateTime externalUserStateChangeDateTime)
Set the external |
Microsoft |
withFaxNumber(String faxNumber)
Set the fax |
Microsoft |
withFollowedSites(List<MicrosoftGraphSite> followedSites)
Set the followed |
Microsoft |
withGivenName(String givenName)
Set the given |
Microsoft |
withHireDate(OffsetDateTime hireDate)
Set the hire |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withIdentities(List<MicrosoftGraphObjectIdentity> identities)
Set the identities property: Represents the identities that can be used to sign in to this user account. |
Microsoft |
withImAddresses(List<String> imAddresses)
Set the im |
Microsoft |
withInferenceClassification(MicrosoftGraphInferenceClassification inferenceClassification)
Set the inference |
Microsoft |
withInsights(MicrosoftGraphOfficeGraphInsights insights)
Set the insights property: office |
Microsoft |
withInterests(List<String> interests)
Set the interests property: A list for the user to describe their interests. |
Microsoft |
withIsResourceAccount(Boolean isResourceAccount)
Set the is |
Microsoft |
withJobTitle(String jobTitle)
Set the job |
Microsoft |
withJoinedTeams(List<MicrosoftGraphTeamInner> joinedTeams)
Set the joined |
Microsoft |
withLastPasswordChangeDateTime(OffsetDateTime lastPasswordChangeDateTime)
Set the last |
Microsoft |
withLegalAgeGroupClassification(String legalAgeGroupClassification)
Set the legal |
Microsoft |
withLicenseAssignmentStates(List<MicrosoftGraphLicenseAssignmentState> licenseAssignmentStates)
Set the license |
Microsoft |
withLicenseDetails(List<MicrosoftGraphLicenseDetails> licenseDetails)
Set the license |
Microsoft |
withMail(String mail)
Set the mail property: The SMTP address for the user, for example, 'jeff@contoso. |
Microsoft |
withMailFolders(List<MicrosoftGraphMailFolder> mailFolders)
Set the mail |
Microsoft |
withMailNickname(String mailNickname)
Set the mail |
Microsoft |
withMailboxSettings(MicrosoftGraphMailboxSettings mailboxSettings)
Set the mailbox |
Microsoft |
withManagedAppRegistrations(List<MicrosoftGraphManagedAppRegistration> managedAppRegistrations)
Set the managed |
Microsoft |
withManagedDevices(List<MicrosoftGraphManagedDevice> managedDevices)
Set the managed |
Microsoft |
withManager(MicrosoftGraphDirectoryObjectInner manager)
Set the manager property: Represents an Azure Active Directory object. |
Microsoft |
withMemberOf(List<MicrosoftGraphDirectoryObjectInner> memberOf)
Set the member |
Microsoft |
withMessages(List<MicrosoftGraphMessage> messages)
Set the messages property: The messages in a mailbox or folder. |
Microsoft |
withMobilePhone(String mobilePhone)
Set the mobile |
Microsoft |
withMySite(String mySite)
Set the my |
Microsoft |
withOauth2PermissionGrants(List<MicrosoftGraphOAuth2PermissionGrant> oauth2PermissionGrants)
Set the oauth2Permission |
Microsoft |
withOfficeLocation(String officeLocation)
Set the office |
Microsoft |
withOnPremisesDistinguishedName(String onPremisesDistinguishedName)
Set the on |
Microsoft |
withOnPremisesDomainName(String onPremisesDomainName)
Set the on |
Microsoft |
withOnPremisesExtensionAttributes(MicrosoftGraphOnPremisesExtensionAttributes onPremisesExtensionAttributes)
Set the on |
Microsoft |
withOnPremisesImmutableId(String onPremisesImmutableId)
Set the on |
Microsoft |
withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime)
Set the on |
Microsoft |
withOnPremisesProvisioningErrors(List<MicrosoftGraphOnPremisesProvisioningError> onPremisesProvisioningErrors)
Set the on |
Microsoft |
withOnPremisesSamAccountName(String onPremisesSamAccountName)
Set the on |
Microsoft |
withOnPremisesSecurityIdentifier(String onPremisesSecurityIdentifier)
Set the on |
Microsoft |
withOnPremisesSyncEnabled(Boolean onPremisesSyncEnabled)
Set the on |
Microsoft |
withOnPremisesUserPrincipalName(String onPremisesUserPrincipalName)
Set the on |
Microsoft |
withOnenote(MicrosoftGraphOnenote onenote)
Set the onenote property: onenote. |
Microsoft |
withOnlineMeetings(List<MicrosoftGraphOnlineMeeting> onlineMeetings)
Set the online |
Microsoft |
withOtherMails(List<String> otherMails)
Set the other |
Microsoft |
withOutlook(MicrosoftGraphOutlookUser outlook)
Set the outlook property: outlook |
Microsoft |
withOwnedDevices(List<MicrosoftGraphDirectoryObjectInner> ownedDevices)
Set the owned |
Microsoft |
withOwnedObjects(List<MicrosoftGraphDirectoryObjectInner> ownedObjects)
Set the owned |
Microsoft |
withPasswordPolicies(String passwordPolicies)
Set the password |
Microsoft |
withPasswordProfile(MicrosoftGraphPasswordProfile passwordProfile)
Set the password |
Microsoft |
withPastProjects(List<String> pastProjects)
Set the past |
Microsoft |
withPeople(List<MicrosoftGraphPerson> people)
Set the people property: People that are relevant to the user. |
Microsoft |
withPhoto(MicrosoftGraphProfilePhoto photo)
Set the photo property: profile |
Microsoft |
withPhotos(List<MicrosoftGraphProfilePhoto> photos)
Set the photos property: The photos property. |
Microsoft |
withPlanner(MicrosoftGraphPlannerUser planner)
Set the planner property: planner |
Microsoft |
withPostalCode(String postalCode)
Set the postal |
Microsoft |
withPreferredLanguage(String preferredLanguage)
Set the preferred |
Microsoft |
withPreferredName(String preferredName)
Set the preferred |
Microsoft |
withPresence(MicrosoftGraphPresence presence)
Set the presence property: presence. |
Microsoft |
withProvisionedPlans(List<MicrosoftGraphProvisionedPlan> provisionedPlans)
Set the provisioned |
Microsoft |
withProxyAddresses(List<String> proxyAddresses)
Set the proxy |
Microsoft |
withRegisteredDevices(List<MicrosoftGraphDirectoryObjectInner> registeredDevices)
Set the registered |
Microsoft |
withResponsibilities(List<String> responsibilities)
Set the responsibilities property: A list for the user to enumerate their responsibilities. |
Microsoft |
withSchools(List<String> schools)
Set the schools property: A list for the user to enumerate the schools they have attended. |
Microsoft |
withScopedRoleMemberOf(List<MicrosoftGraphScopedRoleMembership> scopedRoleMemberOf)
Set the scoped |
Microsoft |
withSettings(MicrosoftGraphUserSettings settings)
Set the settings property: user |
Microsoft |
withShowInAddressList(Boolean showInAddressList)
Set the show |
Microsoft |
withSignInSessionsValidFromDateTime(OffsetDateTime signInSessionsValidFromDateTime)
Set the sign |
Microsoft |
withSkills(List<String> skills)
Set the skills property: A list for the user to enumerate their skills. |
Microsoft |
withState(String state)
Set the state property: The state or province in the user's address. |
Microsoft |
withStreetAddress(String streetAddress)
Set the street |
Microsoft |
withSurname(String surname)
Set the surname property: The user's surname (family name or last name). |
Microsoft |
withTeamwork(MicrosoftGraphUserTeamwork teamwork)
Set the teamwork property: user |
Microsoft |
withTodo(MicrosoftGraphTodo todo)
Set the todo property: todo. |
Microsoft |
withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf)
Set the transitive |
Microsoft |
withUsageLocation(String usageLocation)
Set the usage |
Microsoft |
withUserPrincipalName(String userPrincipalName)
Set the user |
Microsoft |
withUserType(String userType)
Set the user |
Methods inherited from MicrosoftGraphDirectoryObjectInner
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphUserInner
public MicrosoftGraphUserInner()
Creates an instance of MicrosoftGraphUserInner class.
Method Details
aboutMe
public String aboutMe()
Get the aboutMe property: A freeform text entry field for the user to describe themselves.
Returns:
accountEnabled
public Boolean accountEnabled()
Get the accountEnabled property: true if the account is enabled; otherwise, false. This property is required when a user is created. Supports $filter.
Returns:
activities
public List
Get the activities property: The user's activities across devices. Read-only. Nullable.
Returns:
additionalProperties
public Map
Get the additionalProperties property: Represents an Azure Active Directory user object.
Overrides:
MicrosoftGraphUserInner.additionalProperties()Returns:
ageGroup
public String ageGroup()
Get the ageGroup property: Sets the age group of the user. Allowed values: null, minor, notAdult and adult. Refer to the legal age group property definitions for further information.
Returns:
appRoleAssignments
public List
Get the appRoleAssignments property: The appRoleAssignments property.
Returns:
assignedLicenses
public List
Get the assignedLicenses property: The licenses that are assigned to the user. Not nullable.
Returns:
assignedPlans
public List
Get the assignedPlans property: The plans that are assigned to the user. Read-only. Not nullable.
Returns:
birthday
public OffsetDateTime birthday()
Get the birthday property: The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
Returns:
businessPhones
public List
Get the businessPhones property: The telephone numbers for the user. NOTE: Although this is a string collection, only one number can be set for this property. Read-only for users synced from on-premises directory.
Returns:
calendar
public MicrosoftGraphCalendar calendar()
Get the calendar property: calendar.
Returns:
calendarGroups
public List
Get the calendarGroups property: The user's calendar groups. Read-only. Nullable.
Returns:
calendarView
public List
Get the calendarView property: The calendar view for the calendar. Read-only. Nullable.
Returns:
calendars
public List
Get the calendars property: The user's calendars. Read-only. Nullable.
Returns:
city
public String city()
Get the city property: The city in which the user is located. Supports $filter.
Returns:
companyName
public String companyName()
Get the companyName property: The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length of the company name is 64 chararcters.Returned only on $select.
Returns:
consentProvidedForMinor
public String consentProvidedForMinor()
Get the consentProvidedForMinor property: Sets whether consent has been obtained for minors. Allowed values: null, granted, denied and notRequired. Refer to the legal age group property definitions for further information.
Returns:
contactFolders
public List
Get the contactFolders property: The user's contacts folders. Read-only. Nullable.
Returns:
contacts
public List
Get the contacts property: The user's contacts. Read-only. Nullable.
Returns:
country
public String country()
Get the country property: The country/region in which the user is located; for example, 'US' or 'UK'. Supports $filter.
Returns:
createdDateTime
public OffsetDateTime createdDateTime()
Get the createdDateTime property: The created date of the user object.
Returns:
createdObjects
public List
Get the createdObjects property: Directory objects that were created by the user. Read-only. Nullable.
Returns:
creationType
public String creationType()
Get the creationType property: Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified). Read-only.
Returns:
department
public String department()
Get the department property: The name for the department in which the user works. Supports $filter.
Returns:
deviceEnrollmentLimit
public Integer deviceEnrollmentLimit()
Get the deviceEnrollmentLimit property: The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.
Returns:
deviceManagementTroubleshootingEvents
public List
Get the deviceManagementTroubleshootingEvents property: The list of troubleshooting events for this user.
Returns:
directReports
public List
Get the directReports property: The users and contacts that report to the user. (The users and contacts that have their manager property set to this user.) Read-only. Nullable.
Returns:
displayName
public String displayName()
Get the displayName property: The name displayed in the address book for the user. This is usually the combination of the user's first name, middle initial and last name. This property is required when a user is created and it cannot be cleared during updates. Supports $filter and $orderby.
Returns:
drive
public MicrosoftGraphDrive drive()
Get the drive property: drive.
Returns:
drives
public List
Get the drives property: A collection of drives available for this user. Read-only.
Returns:
employeeHireDate
public OffsetDateTime employeeHireDate()
Get the employeeHireDate property: The date and time when the user was hired or will start work in case of a future hire. Returned only on $select. Supports $filter.
Returns:
employeeId
public String employeeId()
Get the employeeId property: The employee identifier assigned to the user by the organization. Returned only on $select. Supports $filter.
Returns:
employeeOrgData
public MicrosoftGraphEmployeeOrgData employeeOrgData()
Get the employeeOrgData property: employeeOrgData.
Returns:
employeeType
public String employeeType()
Get the employeeType property: Captures enterprise worker type: Employee, Contractor, Consultant, Vendor, etc. Returned only on $select. Supports $filter.
Returns:
events
public List
Get the events property: The user's events. Default is to show Events under the Default Calendar. Read-only. Nullable.
Returns:
extensions
public List
Get the extensions property: The collection of open extensions defined for the user. Read-only. Nullable.
Returns:
externalUserState
public String externalUserState()
Get the externalUserState property: The externalUserState property.
Returns:
externalUserStateChangeDateTime
public OffsetDateTime externalUserStateChangeDateTime()
Get the externalUserStateChangeDateTime property: Shows the timestamp for the latest change to the externalUserState property. Returned only on $select.
Returns:
faxNumber
public String faxNumber()
Get the faxNumber property: The fax number of the user.
Returns:
followedSites
public List
Get the followedSites property: The followedSites property.
Returns:
fromJson
public static MicrosoftGraphUserInner fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphUserInner from the JsonReader.
Parameters:
Returns:
Throws:
givenName
public String givenName()
Get the givenName property: The given name (first name) of the user. Supports $filter.
Returns:
hireDate
public OffsetDateTime hireDate()
Get the hireDate property: The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned only on $select. Note: This property is specific to SharePoint Online. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs.
Returns:
identities
public List
Get the identities property: Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and tied to a user account. May contain multiple items with the same signInType value. Supports $filter.
Returns:
imAddresses
public List
Get the imAddresses property: The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only.
Returns:
inferenceClassification
public MicrosoftGraphInferenceClassification inferenceClassification()
Get the inferenceClassification property: inferenceClassification.
Returns:
insights
public MicrosoftGraphOfficeGraphInsights insights()
Get the insights property: officeGraphInsights.
Returns:
interests
public List
Get the interests property: A list for the user to describe their interests.
Returns:
isResourceAccount
public Boolean isResourceAccount()
Get the isResourceAccount property: Do not use \u2013 reserved for future use.
Returns:
jobTitle
public String jobTitle()
Get the jobTitle property: The user's job title. Supports $filter.
Returns:
joinedTeams
public List
Get the joinedTeams property: The joinedTeams property.
Returns:
lastPasswordChangeDateTime
public OffsetDateTime lastPasswordChangeDateTime()
Get the lastPasswordChangeDateTime property: The time when this Azure AD user last changed their password. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
Returns:
legalAgeGroupClassification
public String legalAgeGroupClassification()
Get the legalAgeGroupClassification property: Used by enterprise applications to determine the legal age group of the user. This property is read-only and calculated based on ageGroup and consentProvidedForMinor properties. Allowed values: null, minorWithOutParentalConsent, minorWithParentalConsent, minorNoParentalConsentRequired, notAdult and adult. Refer to the legal age group property definitions for further information.
Returns:
licenseAssignmentStates
public List
Get the licenseAssignmentStates property: State of license assignments for this user. Read-only.
Returns:
licenseDetails
public List
Get the licenseDetails property: A collection of this user's license details. Read-only.
Returns:
public String mail()
Get the mail property: The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'. Supports $filter.
Returns:
mailFolders
public List
Get the mailFolders property: The user's mail folders. Read-only. Nullable.
Returns:
mailNickname
public String mailNickname()
Get the mailNickname property: The mail alias for the user. This property must be specified when a user is created. Supports $filter.
Returns:
mailboxSettings
public MicrosoftGraphMailboxSettings mailboxSettings()
Get the mailboxSettings property: mailboxSettings.
Returns:
managedAppRegistrations
public List
Get the managedAppRegistrations property: Zero or more managed app registrations that belong to the user.
Returns:
managedDevices
public List
Get the managedDevices property: The managed devices associated with the user.
Returns:
manager
public MicrosoftGraphDirectoryObjectInner manager()
Get the manager property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
Returns:
memberOf
public List
Get the memberOf property: The groups and directory roles that the user is a member of. Read-only. Nullable.
Returns:
messages
public List
Get the messages property: The messages in a mailbox or folder. Read-only. Nullable.
Returns:
mobilePhone
public String mobilePhone()
Get the mobilePhone property: The primary cellular telephone number for the user. Read-only for users synced from on-premises directory.
Returns:
mySite
public String mySite()
Get the mySite property: The URL for the user's personal site.
Returns:
oauth2PermissionGrants
public List
Get the oauth2PermissionGrants property: The oauth2PermissionGrants property.
Returns:
officeLocation
public String officeLocation()
Get the officeLocation property: The office location in the user's place of business.
Returns:
onPremisesDistinguishedName
public String onPremisesDistinguishedName()
Get the onPremisesDistinguishedName property: Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only.
Returns:
onPremisesDomainName
public String onPremisesDomainName()
Get the onPremisesDomainName property: Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only.
Returns:
onPremisesExtensionAttributes
public MicrosoftGraphOnPremisesExtensionAttributes onPremisesExtensionAttributes()
Get the onPremisesExtensionAttributes property: onPremisesExtensionAttributes.
Returns:
onPremisesImmutableId
public String onPremisesImmutableId()
Get the onPremisesImmutableId property: This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property. Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.
Returns:
onPremisesLastSyncDateTime
public OffsetDateTime onPremisesLastSyncDateTime()
Get the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.
Returns:
onPremisesProvisioningErrors
public List
Get the onPremisesProvisioningErrors property: Errors when using Microsoft synchronization product during provisioning.
Returns:
onPremisesSamAccountName
public String onPremisesSamAccountName()
Get the onPremisesSamAccountName property: Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only.
Returns:
onPremisesSecurityIdentifier
public String onPremisesSecurityIdentifier()
Get the onPremisesSecurityIdentifier property: Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only.
Returns:
onPremisesSyncEnabled
public Boolean onPremisesSyncEnabled()
Get the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only.
Returns:
onPremisesUserPrincipalName
public String onPremisesUserPrincipalName()
Get the onPremisesUserPrincipalName property: Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only.
Returns:
onenote
public MicrosoftGraphOnenote onenote()
Get the onenote property: onenote.
Returns:
onlineMeetings
public List
Get the onlineMeetings property: The onlineMeetings property.
Returns:
otherMails
public List
Get the otherMails property: The otherMails property.
Returns:
outlook
public MicrosoftGraphOutlookUser outlook()
Get the outlook property: outlookUser.
Returns:
ownedDevices
public List
Get the ownedDevices property: Devices that are owned by the user. Read-only. Nullable.
Returns:
ownedObjects
public List
Get the ownedObjects property: Directory objects that are owned by the user. Read-only. Nullable.
Returns:
passwordPolicies
public String passwordPolicies()
Get the passwordPolicies property: The passwordPolicies property.
Returns:
passwordProfile
public MicrosoftGraphPasswordProfile passwordProfile()
Get the passwordProfile property: passwordProfile.
Returns:
pastProjects
public List
Get the pastProjects property: A list for the user to enumerate their past projects.
Returns:
people
public List
Get the people property: People that are relevant to the user. Read-only. Nullable.
Returns:
photo
public MicrosoftGraphProfilePhoto photo()
Get the photo property: profilePhoto.
Returns:
photos
public List
Get the photos property: The photos property.
Returns:
planner
public MicrosoftGraphPlannerUser planner()
Get the planner property: plannerUser.
Returns:
postalCode
public String postalCode()
Get the postalCode property: The postal code for the user's postal address. The postal code is specific to the user's country/region. In the United States of America, this attribute contains the ZIP code.
Returns:
preferredLanguage
public String preferredLanguage()
Get the preferredLanguage property: The preferred language for the user. Should follow ISO 639-1 Code; for example 'en-US'.
Returns:
preferredName
public String preferredName()
Get the preferredName property: The preferred name for the user.
Returns:
presence
public MicrosoftGraphPresence presence()
Get the presence property: presence.
Returns:
provisionedPlans
public List
Get the provisionedPlans property: The plans that are provisioned for the user. Read-only. Not nullable.
Returns:
proxyAddresses
public List
Get the proxyAddresses property: The proxyAddresses property.
Returns:
registeredDevices
public List
Get the registeredDevices property: Devices that are registered for the user. Read-only. Nullable.
Returns:
responsibilities
public List
Get the responsibilities property: A list for the user to enumerate their responsibilities.
Returns:
schools
public List
Get the schools property: A list for the user to enumerate the schools they have attended.
Returns:
scopedRoleMemberOf
public List
Get the scopedRoleMemberOf property: The scopedRoleMemberOf property.
Returns:
settings
public MicrosoftGraphUserSettings settings()
Get the settings property: userSettings.
Returns:
showInAddressList
public Boolean showInAddressList()
Get the showInAddressList property: true if the Outlook global address list should contain this user, otherwise false. If not set, this will be treated as true. For users invited through the invitation manager, this property will be set to false.
Returns:
signInSessionsValidFromDateTime
public OffsetDateTime signInSessionsValidFromDateTime()
Get the signInSessionsValidFromDateTime property: Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. Read-only. Use revokeSignInSessions to reset.
Returns:
skills
public List
Get the skills property: A list for the user to enumerate their skills.
Returns:
state
public String state()
Get the state property: The state or province in the user's address. Supports $filter.
Returns:
streetAddress
public String streetAddress()
Get the streetAddress property: The street address of the user's place of business.
Returns:
surname
public String surname()
Get the surname property: The user's surname (family name or last name). Supports $filter.
Returns:
teamwork
public MicrosoftGraphUserTeamwork teamwork()
Get the teamwork property: userTeamwork.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphUserInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
todo
public MicrosoftGraphTodo todo()
Get the todo property: todo.
Returns:
transitiveMemberOf
public List
Get the transitiveMemberOf property: The transitiveMemberOf property.
Returns:
usageLocation
public String usageLocation()
Get the usageLocation property: A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: 'US', 'JP', and 'GB'. Not nullable. Supports $filter.
Returns:
userPrincipalName
public String userPrincipalName()
Get the userPrincipalName property: The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization. Supports $filter and $orderby.
Returns:
userType
public String userType()
Get the userType property: A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Supports $filter.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphUserInner.validate()withAboutMe
public MicrosoftGraphUserInner withAboutMe(String aboutMe)
Set the aboutMe property: A freeform text entry field for the user to describe themselves.
Parameters:
Returns:
withAccountEnabled
public MicrosoftGraphUserInner withAccountEnabled(Boolean accountEnabled)
Set the accountEnabled property: true if the account is enabled; otherwise, false. This property is required when a user is created. Supports $filter.
Parameters:
Returns:
withActivities
public MicrosoftGraphUserInner withActivities(List
Set the activities property: The user's activities across devices. Read-only. Nullable.
Parameters:
Returns:
withAdditionalProperties
public MicrosoftGraphUserInner withAdditionalProperties(Map
Set the additionalProperties property: Represents an Azure Active Directory user object.
Overrides:
MicrosoftGraphUserInner.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withAgeGroup
public MicrosoftGraphUserInner withAgeGroup(String ageGroup)
Set the ageGroup property: Sets the age group of the user. Allowed values: null, minor, notAdult and adult. Refer to the legal age group property definitions for further information.
Parameters:
Returns:
withAppRoleAssignments
public MicrosoftGraphUserInner withAppRoleAssignments(List
Set the appRoleAssignments property: The appRoleAssignments property.
Parameters:
Returns:
withAssignedLicenses
public MicrosoftGraphUserInner withAssignedLicenses(List
Set the assignedLicenses property: The licenses that are assigned to the user. Not nullable.
Parameters:
Returns:
withAssignedPlans
public MicrosoftGraphUserInner withAssignedPlans(List
Set the assignedPlans property: The plans that are assigned to the user. Read-only. Not nullable.
Parameters:
Returns:
withBirthday
public MicrosoftGraphUserInner withBirthday(OffsetDateTime birthday)
Set the birthday property: The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
Parameters:
Returns:
withBusinessPhones
public MicrosoftGraphUserInner withBusinessPhones(List
Set the businessPhones property: The telephone numbers for the user. NOTE: Although this is a string collection, only one number can be set for this property. Read-only for users synced from on-premises directory.
Parameters:
Returns:
withCalendar
public MicrosoftGraphUserInner withCalendar(MicrosoftGraphCalendar calendar)
Set the calendar property: calendar.
Parameters:
Returns:
withCalendarGroups
public MicrosoftGraphUserInner withCalendarGroups(List
Set the calendarGroups property: The user's calendar groups. Read-only. Nullable.
Parameters:
Returns:
withCalendarView
public MicrosoftGraphUserInner withCalendarView(List
Set the calendarView property: The calendar view for the calendar. Read-only. Nullable.
Parameters:
Returns:
withCalendars
public MicrosoftGraphUserInner withCalendars(List
Set the calendars property: The user's calendars. Read-only. Nullable.
Parameters:
Returns:
withCity
public MicrosoftGraphUserInner withCity(String city)
Set the city property: The city in which the user is located. Supports $filter.
Parameters:
Returns:
withCompanyName
public MicrosoftGraphUserInner withCompanyName(String companyName)
Set the companyName property: The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length of the company name is 64 chararcters.Returned only on $select.
Parameters:
Returns:
withConsentProvidedForMinor
public MicrosoftGraphUserInner withConsentProvidedForMinor(String consentProvidedForMinor)
Set the consentProvidedForMinor property: Sets whether consent has been obtained for minors. Allowed values: null, granted, denied and notRequired. Refer to the legal age group property definitions for further information.
Parameters:
Returns:
withContactFolders
public MicrosoftGraphUserInner withContactFolders(List
Set the contactFolders property: The user's contacts folders. Read-only. Nullable.
Parameters:
Returns:
withContacts
public MicrosoftGraphUserInner withContacts(List
Set the contacts property: The user's contacts. Read-only. Nullable.
Parameters:
Returns:
withCountry
public MicrosoftGraphUserInner withCountry(String country)
Set the country property: The country/region in which the user is located; for example, 'US' or 'UK'. Supports $filter.
Parameters:
Returns:
withCreatedDateTime
public MicrosoftGraphUserInner withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: The created date of the user object.
Parameters:
Returns:
withCreatedObjects
public MicrosoftGraphUserInner withCreatedObjects(List
Set the createdObjects property: Directory objects that were created by the user. Read-only. Nullable.
Parameters:
Returns:
withCreationType
public MicrosoftGraphUserInner withCreationType(String creationType)
Set the creationType property: Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified). Read-only.
Parameters:
Returns:
withDeletedDateTime
public MicrosoftGraphUserInner withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deletedDateTime property: The deletedDateTime property.
Overrides:
MicrosoftGraphUserInner.withDeletedDateTime(OffsetDateTime deletedDateTime)Parameters:
withDepartment
public MicrosoftGraphUserInner withDepartment(String department)
Set the department property: The name for the department in which the user works. Supports $filter.
Parameters:
Returns:
withDeviceEnrollmentLimit
public MicrosoftGraphUserInner withDeviceEnrollmentLimit(Integer deviceEnrollmentLimit)
Set the deviceEnrollmentLimit property: The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.
Parameters:
Returns:
withDeviceManagementTroubleshootingEvents
public MicrosoftGraphUserInner withDeviceManagementTroubleshootingEvents(List
Set the deviceManagementTroubleshootingEvents property: The list of troubleshooting events for this user.
Parameters:
Returns:
withDirectReports
public MicrosoftGraphUserInner withDirectReports(List
Set the directReports property: The users and contacts that report to the user. (The users and contacts that have their manager property set to this user.) Read-only. Nullable.
Parameters:
Returns:
withDisplayName
public MicrosoftGraphUserInner withDisplayName(String displayName)
Set the displayName property: The name displayed in the address book for the user. This is usually the combination of the user's first name, middle initial and last name. This property is required when a user is created and it cannot be cleared during updates. Supports $filter and $orderby.
Parameters:
Returns:
withDrive
public MicrosoftGraphUserInner withDrive(MicrosoftGraphDrive drive)
Set the drive property: drive.
Parameters:
Returns:
withDrives
public MicrosoftGraphUserInner withDrives(List
Set the drives property: A collection of drives available for this user. Read-only.
Parameters:
Returns:
withEmployeeHireDate
public MicrosoftGraphUserInner withEmployeeHireDate(OffsetDateTime employeeHireDate)
Set the employeeHireDate property: The date and time when the user was hired or will start work in case of a future hire. Returned only on $select. Supports $filter.
Parameters:
Returns:
withEmployeeId
public MicrosoftGraphUserInner withEmployeeId(String employeeId)
Set the employeeId property: The employee identifier assigned to the user by the organization. Returned only on $select. Supports $filter.
Parameters:
Returns:
withEmployeeOrgData
public MicrosoftGraphUserInner withEmployeeOrgData(MicrosoftGraphEmployeeOrgData employeeOrgData)
Set the employeeOrgData property: employeeOrgData.
Parameters:
Returns:
withEmployeeType
public MicrosoftGraphUserInner withEmployeeType(String employeeType)
Set the employeeType property: Captures enterprise worker type: Employee, Contractor, Consultant, Vendor, etc. Returned only on $select. Supports $filter.
Parameters:
Returns:
withEvents
public MicrosoftGraphUserInner withEvents(List
Set the events property: The user's events. Default is to show Events under the Default Calendar. Read-only. Nullable.
Parameters:
Returns:
withExtensions
public MicrosoftGraphUserInner withExtensions(List
Set the extensions property: The collection of open extensions defined for the user. Read-only. Nullable.
Parameters:
Returns:
withExternalUserState
public MicrosoftGraphUserInner withExternalUserState(String externalUserState)
Set the externalUserState property: The externalUserState property.
Parameters:
Returns:
withExternalUserStateChangeDateTime
public MicrosoftGraphUserInner withExternalUserStateChangeDateTime(OffsetDateTime externalUserStateChangeDateTime)
Set the externalUserStateChangeDateTime property: Shows the timestamp for the latest change to the externalUserState property. Returned only on $select.
Parameters:
Returns:
withFaxNumber
public MicrosoftGraphUserInner withFaxNumber(String faxNumber)
Set the faxNumber property: The fax number of the user.
Parameters:
Returns:
withFollowedSites
public MicrosoftGraphUserInner withFollowedSites(List
Set the followedSites property: The followedSites property.
Parameters:
Returns:
withGivenName
public MicrosoftGraphUserInner withGivenName(String givenName)
Set the givenName property: The given name (first name) of the user. Supports $filter.
Parameters:
Returns:
withHireDate
public MicrosoftGraphUserInner withHireDate(OffsetDateTime hireDate)
Set the hireDate property: The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned only on $select. Note: This property is specific to SharePoint Online. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs.
Parameters:
Returns:
withId
public MicrosoftGraphUserInner withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphUserInner.withId(String id)Parameters:
withIdentities
public MicrosoftGraphUserInner withIdentities(List
Set the identities property: Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and tied to a user account. May contain multiple items with the same signInType value. Supports $filter.
Parameters:
Returns:
withImAddresses
public MicrosoftGraphUserInner withImAddresses(List
Set the imAddresses property: The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only.
Parameters:
Returns:
withInferenceClassification
public MicrosoftGraphUserInner withInferenceClassification(MicrosoftGraphInferenceClassification inferenceClassification)
Set the inferenceClassification property: inferenceClassification.
Parameters:
Returns:
withInsights
public MicrosoftGraphUserInner withInsights(MicrosoftGraphOfficeGraphInsights insights)
Set the insights property: officeGraphInsights.
Parameters:
Returns:
withInterests
public MicrosoftGraphUserInner withInterests(List
Set the interests property: A list for the user to describe their interests.
Parameters:
Returns:
withIsResourceAccount
public MicrosoftGraphUserInner withIsResourceAccount(Boolean isResourceAccount)
Set the isResourceAccount property: Do not use \u2013 reserved for future use.
Parameters:
Returns:
withJobTitle
public MicrosoftGraphUserInner withJobTitle(String jobTitle)
Set the jobTitle property: The user's job title. Supports $filter.
Parameters:
Returns:
withJoinedTeams
public MicrosoftGraphUserInner withJoinedTeams(List
Set the joinedTeams property: The joinedTeams property.
Parameters:
Returns:
withLastPasswordChangeDateTime
public MicrosoftGraphUserInner withLastPasswordChangeDateTime(OffsetDateTime lastPasswordChangeDateTime)
Set the lastPasswordChangeDateTime property: The time when this Azure AD user last changed their password. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
Parameters:
Returns:
withLegalAgeGroupClassification
public MicrosoftGraphUserInner withLegalAgeGroupClassification(String legalAgeGroupClassification)
Set the legalAgeGroupClassification property: Used by enterprise applications to determine the legal age group of the user. This property is read-only and calculated based on ageGroup and consentProvidedForMinor properties. Allowed values: null, minorWithOutParentalConsent, minorWithParentalConsent, minorNoParentalConsentRequired, notAdult and adult. Refer to the legal age group property definitions for further information.
Parameters:
Returns:
withLicenseAssignmentStates
public MicrosoftGraphUserInner withLicenseAssignmentStates(List
Set the licenseAssignmentStates property: State of license assignments for this user. Read-only.
Parameters:
Returns:
withLicenseDetails
public MicrosoftGraphUserInner withLicenseDetails(List
Set the licenseDetails property: A collection of this user's license details. Read-only.
Parameters:
Returns:
withMail
public MicrosoftGraphUserInner withMail(String mail)
Set the mail property: The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'. Supports $filter.
Parameters:
Returns:
withMailFolders
public MicrosoftGraphUserInner withMailFolders(List
Set the mailFolders property: The user's mail folders. Read-only. Nullable.
Parameters:
Returns:
withMailNickname
public MicrosoftGraphUserInner withMailNickname(String mailNickname)
Set the mailNickname property: The mail alias for the user. This property must be specified when a user is created. Supports $filter.
Parameters:
Returns:
withMailboxSettings
public MicrosoftGraphUserInner withMailboxSettings(MicrosoftGraphMailboxSettings mailboxSettings)
Set the mailboxSettings property: mailboxSettings.
Parameters:
Returns:
withManagedAppRegistrations
public MicrosoftGraphUserInner withManagedAppRegistrations(List
Set the managedAppRegistrations property: Zero or more managed app registrations that belong to the user.
Parameters:
Returns:
withManagedDevices
public MicrosoftGraphUserInner withManagedDevices(List
Set the managedDevices property: The managed devices associated with the user.
Parameters:
Returns:
withManager
public MicrosoftGraphUserInner withManager(MicrosoftGraphDirectoryObjectInner manager)
Set the manager property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
Parameters:
Returns:
withMemberOf
public MicrosoftGraphUserInner withMemberOf(List
Set the memberOf property: The groups and directory roles that the user is a member of. Read-only. Nullable.
Parameters:
Returns:
withMessages
public MicrosoftGraphUserInner withMessages(List
Set the messages property: The messages in a mailbox or folder. Read-only. Nullable.
Parameters:
Returns:
withMobilePhone
public MicrosoftGraphUserInner withMobilePhone(String mobilePhone)
Set the mobilePhone property: The primary cellular telephone number for the user. Read-only for users synced from on-premises directory.
Parameters:
Returns:
withMySite
public MicrosoftGraphUserInner withMySite(String mySite)
Set the mySite property: The URL for the user's personal site.
Parameters:
Returns:
withOauth2PermissionGrants
public MicrosoftGraphUserInner withOauth2PermissionGrants(List
Set the oauth2PermissionGrants property: The oauth2PermissionGrants property.
Parameters:
Returns:
withOfficeLocation
public MicrosoftGraphUserInner withOfficeLocation(String officeLocation)
Set the officeLocation property: The office location in the user's place of business.
Parameters:
Returns:
withOnPremisesDistinguishedName
public MicrosoftGraphUserInner withOnPremisesDistinguishedName(String onPremisesDistinguishedName)
Set the onPremisesDistinguishedName property: Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only.
Parameters:
Returns:
withOnPremisesDomainName
public MicrosoftGraphUserInner withOnPremisesDomainName(String onPremisesDomainName)
Set the onPremisesDomainName property: Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only.
Parameters:
Returns:
withOnPremisesExtensionAttributes
public MicrosoftGraphUserInner withOnPremisesExtensionAttributes(MicrosoftGraphOnPremisesExtensionAttributes onPremisesExtensionAttributes)
Set the onPremisesExtensionAttributes property: onPremisesExtensionAttributes.
Parameters:
Returns:
withOnPremisesImmutableId
public MicrosoftGraphUserInner withOnPremisesImmutableId(String onPremisesImmutableId)
Set the onPremisesImmutableId property: This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property. Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.
Parameters:
Returns:
withOnPremisesLastSyncDateTime
public MicrosoftGraphUserInner withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime)
Set the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.
Parameters:
Returns:
withOnPremisesProvisioningErrors
public MicrosoftGraphUserInner withOnPremisesProvisioningErrors(List
Set the onPremisesProvisioningErrors property: Errors when using Microsoft synchronization product during provisioning.
Parameters:
Returns:
withOnPremisesSamAccountName
public MicrosoftGraphUserInner withOnPremisesSamAccountName(String onPremisesSamAccountName)
Set the onPremisesSamAccountName property: Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only.
Parameters:
Returns:
withOnPremisesSecurityIdentifier
public MicrosoftGraphUserInner withOnPremisesSecurityIdentifier(String onPremisesSecurityIdentifier)
Set the onPremisesSecurityIdentifier property: Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only.
Parameters:
Returns:
withOnPremisesSyncEnabled
public MicrosoftGraphUserInner withOnPremisesSyncEnabled(Boolean onPremisesSyncEnabled)
Set the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only.
Parameters:
Returns:
withOnPremisesUserPrincipalName
public MicrosoftGraphUserInner withOnPremisesUserPrincipalName(String onPremisesUserPrincipalName)
Set the onPremisesUserPrincipalName property: Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only.
Parameters:
Returns:
withOnenote
public MicrosoftGraphUserInner withOnenote(MicrosoftGraphOnenote onenote)
Set the onenote property: onenote.
Parameters:
Returns:
withOnlineMeetings
public MicrosoftGraphUserInner withOnlineMeetings(List
Set the onlineMeetings property: The onlineMeetings property.
Parameters:
Returns:
withOtherMails
public MicrosoftGraphUserInner withOtherMails(List
Set the otherMails property: The otherMails property.
Parameters:
Returns:
withOutlook
public MicrosoftGraphUserInner withOutlook(MicrosoftGraphOutlookUser outlook)
Set the outlook property: outlookUser.
Parameters:
Returns:
withOwnedDevices
public MicrosoftGraphUserInner withOwnedDevices(List
Set the ownedDevices property: Devices that are owned by the user. Read-only. Nullable.
Parameters:
Returns:
withOwnedObjects
public MicrosoftGraphUserInner withOwnedObjects(List
Set the ownedObjects property: Directory objects that are owned by the user. Read-only. Nullable.
Parameters:
Returns:
withPasswordPolicies
public MicrosoftGraphUserInner withPasswordPolicies(String passwordPolicies)
Set the passwordPolicies property: The passwordPolicies property.
Parameters:
Returns:
withPasswordProfile
public MicrosoftGraphUserInner withPasswordProfile(MicrosoftGraphPasswordProfile passwordProfile)
Set the passwordProfile property: passwordProfile.
Parameters:
Returns:
withPastProjects
public MicrosoftGraphUserInner withPastProjects(List
Set the pastProjects property: A list for the user to enumerate their past projects.
Parameters:
Returns:
withPeople
public MicrosoftGraphUserInner withPeople(List
Set the people property: People that are relevant to the user. Read-only. Nullable.
Parameters:
Returns:
withPhoto
public MicrosoftGraphUserInner withPhoto(MicrosoftGraphProfilePhoto photo)
Set the photo property: profilePhoto.
Parameters:
Returns:
withPhotos
public MicrosoftGraphUserInner withPhotos(List
Set the photos property: The photos property.
Parameters:
Returns:
withPlanner
public MicrosoftGraphUserInner withPlanner(MicrosoftGraphPlannerUser planner)
Set the planner property: plannerUser.
Parameters:
Returns:
withPostalCode
public MicrosoftGraphUserInner withPostalCode(String postalCode)
Set the postalCode property: The postal code for the user's postal address. The postal code is specific to the user's country/region. In the United States of America, this attribute contains the ZIP code.
Parameters:
Returns:
withPreferredLanguage
public MicrosoftGraphUserInner withPreferredLanguage(String preferredLanguage)
Set the preferredLanguage property: The preferred language for the user. Should follow ISO 639-1 Code; for example 'en-US'.
Parameters:
Returns:
withPreferredName
public MicrosoftGraphUserInner withPreferredName(String preferredName)
Set the preferredName property: The preferred name for the user.
Parameters:
Returns:
withPresence
public MicrosoftGraphUserInner withPresence(MicrosoftGraphPresence presence)
Set the presence property: presence.
Parameters:
Returns:
withProvisionedPlans
public MicrosoftGraphUserInner withProvisionedPlans(List
Set the provisionedPlans property: The plans that are provisioned for the user. Read-only. Not nullable.
Parameters:
Returns:
withProxyAddresses
public MicrosoftGraphUserInner withProxyAddresses(List
Set the proxyAddresses property: The proxyAddresses property.
Parameters:
Returns:
withRegisteredDevices
public MicrosoftGraphUserInner withRegisteredDevices(List
Set the registeredDevices property: Devices that are registered for the user. Read-only. Nullable.
Parameters:
Returns:
withResponsibilities
public MicrosoftGraphUserInner withResponsibilities(List
Set the responsibilities property: A list for the user to enumerate their responsibilities.
Parameters:
Returns:
withSchools
public MicrosoftGraphUserInner withSchools(List
Set the schools property: A list for the user to enumerate the schools they have attended.
Parameters:
Returns:
withScopedRoleMemberOf
public MicrosoftGraphUserInner withScopedRoleMemberOf(List
Set the scopedRoleMemberOf property: The scopedRoleMemberOf property.
Parameters:
Returns:
withSettings
public MicrosoftGraphUserInner withSettings(MicrosoftGraphUserSettings settings)
Set the settings property: userSettings.
Parameters:
Returns:
withShowInAddressList
public MicrosoftGraphUserInner withShowInAddressList(Boolean showInAddressList)
Set the showInAddressList property: true if the Outlook global address list should contain this user, otherwise false. If not set, this will be treated as true. For users invited through the invitation manager, this property will be set to false.
Parameters:
Returns:
withSignInSessionsValidFromDateTime
public MicrosoftGraphUserInner withSignInSessionsValidFromDateTime(OffsetDateTime signInSessionsValidFromDateTime)
Set the signInSessionsValidFromDateTime property: Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. Read-only. Use revokeSignInSessions to reset.
Parameters:
Returns:
withSkills
public MicrosoftGraphUserInner withSkills(List
Set the skills property: A list for the user to enumerate their skills.
Parameters:
Returns:
withState
public MicrosoftGraphUserInner withState(String state)
Set the state property: The state or province in the user's address. Supports $filter.
Parameters:
Returns:
withStreetAddress
public MicrosoftGraphUserInner withStreetAddress(String streetAddress)
Set the streetAddress property: The street address of the user's place of business.
Parameters:
Returns:
withSurname
public MicrosoftGraphUserInner withSurname(String surname)
Set the surname property: The user's surname (family name or last name). Supports $filter.
Parameters:
Returns:
withTeamwork
public MicrosoftGraphUserInner withTeamwork(MicrosoftGraphUserTeamwork teamwork)
Set the teamwork property: userTeamwork.
Parameters:
Returns:
withTodo
public MicrosoftGraphUserInner withTodo(MicrosoftGraphTodo todo)
Set the todo property: todo.
Parameters:
Returns:
withTransitiveMemberOf
public MicrosoftGraphUserInner withTransitiveMemberOf(List
Set the transitiveMemberOf property: The transitiveMemberOf property.
Parameters:
Returns:
withUsageLocation
public MicrosoftGraphUserInner withUsageLocation(String usageLocation)
Set the usageLocation property: A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: 'US', 'JP', and 'GB'. Not nullable. Supports $filter.
Parameters:
Returns:
withUserPrincipalName
public MicrosoftGraphUserInner withUserPrincipalName(String userPrincipalName)
Set the userPrincipalName property: The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization. Supports $filter and $orderby.
Parameters:
Returns:
withUserType
public MicrosoftGraphUserInner withUserType(String userType)
Set the userType property: A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Supports $filter.
Parameters:
Returns:
Applies to
Azure SDK for Java