Class User

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class User
    extends DirectoryObject
    implements com.github.davidmoten.odata.client.ODataEntityType

    Org.OData.Capabilities.V1.ChangeTracking

    Supported = true

    • Constructor Detail

      • User

        protected User()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class DirectoryObject
      • builderUser

        public static User.Builder builderUser()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class DirectoryObject
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class DirectoryObject
      • withAccountEnabled

        public User withAccountEnabled​(Boolean accountEnabled)
      • withAgeGroup

        public User withAgeGroup​(String ageGroup)
      • getAssignedLicenses

        public com.github.davidmoten.odata.client.CollectionPage<AssignedLicense> getAssignedLicenses()
      • getAssignedLicenses

        public com.github.davidmoten.odata.client.CollectionPage<AssignedLicense> getAssignedLicenses​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getAssignedPlans

        public com.github.davidmoten.odata.client.CollectionPage<AssignedPlan> getAssignedPlans()
      • getAssignedPlans

        public com.github.davidmoten.odata.client.CollectionPage<AssignedPlan> getAssignedPlans​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getBusinessPhones

        public com.github.davidmoten.odata.client.CollectionPage<String> getBusinessPhones()
      • withBusinessPhones

        public User withBusinessPhones​(List<String> businessPhones)
      • getBusinessPhones

        public com.github.davidmoten.odata.client.CollectionPage<String> getBusinessPhones​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withCity

        public User withCity​(String city)
      • withCompanyName

        public User withCompanyName​(String companyName)
      • getConsentProvidedForMinor

        public Optional<String> getConsentProvidedForMinor()
      • withConsentProvidedForMinor

        public User withConsentProvidedForMinor​(String consentProvidedForMinor)
      • withCountry

        public User withCountry​(String country)
      • withCreatedDateTime

        public User withCreatedDateTime​(OffsetDateTime createdDateTime)
      • withCreationType

        public User withCreationType​(String creationType)
      • withDepartment

        public User withDepartment​(String department)
      • withDisplayName

        public User withDisplayName​(String displayName)
      • withEmployeeHireDate

        public User withEmployeeHireDate​(OffsetDateTime employeeHireDate)
      • withEmployeeId

        public User withEmployeeId​(String employeeId)
      • withEmployeeLeaveDateTime

        public User withEmployeeLeaveDateTime​(OffsetDateTime employeeLeaveDateTime)
      • withEmployeeType

        public User withEmployeeType​(String employeeType)
      • getExternalUserState

        public Optional<String> getExternalUserState()
      • withExternalUserState

        public User withExternalUserState​(String externalUserState)
      • withExternalUserStateChangeDateTime

        public User withExternalUserStateChangeDateTime​(OffsetDateTime externalUserStateChangeDateTime)
      • withFaxNumber

        public User withFaxNumber​(String faxNumber)
      • withGivenName

        public User withGivenName​(String givenName)
      • getIdentities

        public com.github.davidmoten.odata.client.CollectionPage<ObjectIdentity> getIdentities()
      • getIdentities

        public com.github.davidmoten.odata.client.CollectionPage<ObjectIdentity> getIdentities​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getImAddresses

        public com.github.davidmoten.odata.client.CollectionPage<String> getImAddresses()
      • withImAddresses

        public User withImAddresses​(List<String> imAddresses)
      • getImAddresses

        public com.github.davidmoten.odata.client.CollectionPage<String> getImAddresses​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withIsResourceAccount

        public User withIsResourceAccount​(Boolean isResourceAccount)
      • withJobTitle

        public User withJobTitle​(String jobTitle)
      • withLastPasswordChangeDateTime

        public User withLastPasswordChangeDateTime​(OffsetDateTime lastPasswordChangeDateTime)
      • getLegalAgeGroupClassification

        public Optional<String> getLegalAgeGroupClassification()
      • withLegalAgeGroupClassification

        public User withLegalAgeGroupClassification​(String legalAgeGroupClassification)
      • getLicenseAssignmentStates

        public com.github.davidmoten.odata.client.CollectionPage<LicenseAssignmentState> getLicenseAssignmentStates()
      • getLicenseAssignmentStates

        public com.github.davidmoten.odata.client.CollectionPage<LicenseAssignmentState> getLicenseAssignmentStates​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withMail

        public User withMail​(String mail)
      • withMailNickname

        public User withMailNickname​(String mailNickname)
      • withMobilePhone

        public User withMobilePhone​(String mobilePhone)
      • withOfficeLocation

        public User withOfficeLocation​(String officeLocation)
      • getOnPremisesDistinguishedName

        public Optional<String> getOnPremisesDistinguishedName()
      • withOnPremisesDistinguishedName

        public User withOnPremisesDistinguishedName​(String onPremisesDistinguishedName)
      • getOnPremisesDomainName

        public Optional<String> getOnPremisesDomainName()
      • withOnPremisesDomainName

        public User withOnPremisesDomainName​(String onPremisesDomainName)
      • getOnPremisesImmutableId

        public Optional<String> getOnPremisesImmutableId()
      • withOnPremisesImmutableId

        public User withOnPremisesImmutableId​(String onPremisesImmutableId)
      • withOnPremisesLastSyncDateTime

        public User withOnPremisesLastSyncDateTime​(OffsetDateTime onPremisesLastSyncDateTime)
      • getOnPremisesProvisioningErrors

        public com.github.davidmoten.odata.client.CollectionPage<OnPremisesProvisioningError> getOnPremisesProvisioningErrors()
      • getOnPremisesProvisioningErrors

        public com.github.davidmoten.odata.client.CollectionPage<OnPremisesProvisioningError> getOnPremisesProvisioningErrors​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getOnPremisesSamAccountName

        public Optional<String> getOnPremisesSamAccountName()
      • withOnPremisesSamAccountName

        public User withOnPremisesSamAccountName​(String onPremisesSamAccountName)
      • getOnPremisesSecurityIdentifier

        public Optional<String> getOnPremisesSecurityIdentifier()
      • withOnPremisesSecurityIdentifier

        public User withOnPremisesSecurityIdentifier​(String onPremisesSecurityIdentifier)
      • getOnPremisesSyncEnabled

        public Optional<Boolean> getOnPremisesSyncEnabled()
      • withOnPremisesSyncEnabled

        public User withOnPremisesSyncEnabled​(Boolean onPremisesSyncEnabled)
      • getOnPremisesUserPrincipalName

        public Optional<String> getOnPremisesUserPrincipalName()
      • withOnPremisesUserPrincipalName

        public User withOnPremisesUserPrincipalName​(String onPremisesUserPrincipalName)
      • getOtherMails

        public com.github.davidmoten.odata.client.CollectionPage<String> getOtherMails()
      • withOtherMails

        public User withOtherMails​(List<String> otherMails)
      • getOtherMails

        public com.github.davidmoten.odata.client.CollectionPage<String> getOtherMails​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withPasswordPolicies

        public User withPasswordPolicies​(String passwordPolicies)
      • withPostalCode

        public User withPostalCode​(String postalCode)
      • getPreferredDataLocation

        public Optional<String> getPreferredDataLocation()
      • withPreferredDataLocation

        public User withPreferredDataLocation​(String preferredDataLocation)
      • getPreferredLanguage

        public Optional<String> getPreferredLanguage()
      • withPreferredLanguage

        public User withPreferredLanguage​(String preferredLanguage)
      • getProvisionedPlans

        public com.github.davidmoten.odata.client.CollectionPage<ProvisionedPlan> getProvisionedPlans()
      • getProvisionedPlans

        public com.github.davidmoten.odata.client.CollectionPage<ProvisionedPlan> getProvisionedPlans​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getProxyAddresses

        public com.github.davidmoten.odata.client.CollectionPage<String> getProxyAddresses()
      • withProxyAddresses

        public User withProxyAddresses​(List<String> proxyAddresses)
      • getProxyAddresses

        public com.github.davidmoten.odata.client.CollectionPage<String> getProxyAddresses​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getSecurityIdentifier

        public Optional<String> getSecurityIdentifier()
      • withSecurityIdentifier

        public User withSecurityIdentifier​(String securityIdentifier)
      • getServiceProvisioningErrors

        public com.github.davidmoten.odata.client.CollectionPage<ServiceProvisioningError> getServiceProvisioningErrors()
      • getServiceProvisioningErrors

        public com.github.davidmoten.odata.client.CollectionPage<ServiceProvisioningError> getServiceProvisioningErrors​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withShowInAddressList

        public User withShowInAddressList​(Boolean showInAddressList)
      • withSignInSessionsValidFromDateTime

        public User withSignInSessionsValidFromDateTime​(OffsetDateTime signInSessionsValidFromDateTime)
      • withState

        public User withState​(String state)
      • withStreetAddress

        public User withStreetAddress​(String streetAddress)
      • withSurname

        public User withSurname​(String surname)
      • withUsageLocation

        public User withUsageLocation​(String usageLocation)
      • getUserPrincipalName

        public Optional<String> getUserPrincipalName()
      • withUserPrincipalName

        public User withUserPrincipalName​(String userPrincipalName)
      • withUserType

        public User withUserType​(String userType)
      • getDeviceEnrollmentLimit

        public Optional<Integer> getDeviceEnrollmentLimit()
        “The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.”
        Returns:
        property deviceEnrollmentLimit
      • withDeviceEnrollmentLimit

        public User withDeviceEnrollmentLimit​(Integer deviceEnrollmentLimit)
        Returns an immutable copy of this with just the deviceEnrollmentLimit field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.”

        Parameters:
        deviceEnrollmentLimit - new value of deviceEnrollmentLimit field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceEnrollmentLimit field changed
      • withAboutMe

        public User withAboutMe​(String aboutMe)
      • getInterests

        public com.github.davidmoten.odata.client.CollectionPage<String> getInterests()
      • withInterests

        public User withInterests​(List<String> interests)
      • getInterests

        public com.github.davidmoten.odata.client.CollectionPage<String> getInterests​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withMySite

        public User withMySite​(String mySite)
      • getPastProjects

        public com.github.davidmoten.odata.client.CollectionPage<String> getPastProjects()
      • withPastProjects

        public User withPastProjects​(List<String> pastProjects)
      • getPastProjects

        public com.github.davidmoten.odata.client.CollectionPage<String> getPastProjects​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withPreferredName

        public User withPreferredName​(String preferredName)
      • getResponsibilities

        public com.github.davidmoten.odata.client.CollectionPage<String> getResponsibilities()
      • withResponsibilities

        public User withResponsibilities​(List<String> responsibilities)
      • getResponsibilities

        public com.github.davidmoten.odata.client.CollectionPage<String> getResponsibilities​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getSchools

        public com.github.davidmoten.odata.client.CollectionPage<String> getSchools()
      • getSchools

        public com.github.davidmoten.odata.client.CollectionPage<String> getSchools​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getSkills

        public com.github.davidmoten.odata.client.CollectionPage<String> getSkills()
      • getSkills

        public com.github.davidmoten.odata.client.CollectionPage<String> getSkills​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getCalendar

        public CalendarRequest getCalendar()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Returns:
        navigational property calendar
      • getCalendarGroups

        public CalendarGroupCollectionRequest getCalendarGroups()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Returns:
        navigational property calendarGroups
      • getCalendars

        public CalendarCollectionRequest getCalendars()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Returns:
        navigational property calendars
      • getCalendarView

        public EventCollectionRequest getCalendarView()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = true

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.NavigationRestrictions

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Returns:
        navigational property calendarView
      • getContactFolders

        public ContactFolderCollectionRequest getContactFolders()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = true

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Returns:
        navigational property contactFolders
      • getContacts

        public ContactCollectionRequest getContacts()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = true

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Returns:
        navigational property contacts
      • getEvents

        public EventCollectionRequest getEvents()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Returns:
        navigational property events
      • getInferenceClassification

        public InferenceClassificationRequest getInferenceClassification()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Returns:
        navigational property inferenceClassification
      • getMailFolders

        public MailFolderCollectionRequest getMailFolders()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = true

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Returns:
        navigational property mailFolders
      • getMessages

        public MessageCollectionRequest getMessages()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Returns:
        navigational property messages
      • getOutlook

        public OutlookUserRequest getOutlook()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Returns:
        navigational property outlook
      • getPeople

        public PersonCollectionRequest getPeople()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Returns:
        navigational property people
      • getManagedDevices

        public ManagedDeviceCollectionRequest getManagedDevices()
        “The managed devices associated with the user.”
        Returns:
        navigational property managedDevices
      • getManagedAppRegistrations

        public ManagedAppRegistrationCollectionRequest getManagedAppRegistrations()
        “Zero or more managed app registrations that belong to the user.”
        Returns:
        navigational property managedAppRegistrations
      • getDeviceManagementTroubleshootingEvents

        public DeviceManagementTroubleshootingEventCollectionRequest getDeviceManagementTroubleshootingEvents()
        “The list of troubleshooting events for this user.”
        Returns:
        navigational property deviceManagementTroubleshootingEvents
      • getPhoto

        public ProfilePhotoRequest getPhoto()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = true

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Returns:
        navigational property photo
      • getPhotos

        public ProfilePhotoCollectionRequest getPhotos()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.CountRestrictions

        Countable = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Returns:
        navigational property photos
      • withCalendar

        public User withCalendar​(Calendar calendar)
        Returns an immutable copy of this with just the calendar field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        calendar - new value of calendar field (as defined in service metadata)
        Returns:
        immutable copy of this with just the calendar field changed
      • withCalendarGroups

        public User withCalendarGroups​(List<CalendarGroup> calendarGroups)
        Returns an immutable copy of this with just the calendarGroups field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        calendarGroups - new value of calendarGroups field (as defined in service metadata)
        Returns:
        immutable copy of this with just the calendarGroups field changed
      • withCalendars

        public User withCalendars​(List<Calendar> calendars)
        Returns an immutable copy of this with just the calendars field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        calendars - new value of calendars field (as defined in service metadata)
        Returns:
        immutable copy of this with just the calendars field changed
      • withCalendarView

        public User withCalendarView​(List<Event> calendarView)
        Returns an immutable copy of this with just the calendarView field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = true

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.NavigationRestrictions

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Parameters:
        calendarView - new value of calendarView field (as defined in service metadata)
        Returns:
        immutable copy of this with just the calendarView field changed
      • withContactFolders

        public User withContactFolders​(List<ContactFolder> contactFolders)
        Returns an immutable copy of this with just the contactFolders field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = true

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        contactFolders - new value of contactFolders field (as defined in service metadata)
        Returns:
        immutable copy of this with just the contactFolders field changed
      • withContacts

        public User withContacts​(List<Contact> contacts)
        Returns an immutable copy of this with just the contacts field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = true

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Parameters:
        contacts - new value of contacts field (as defined in service metadata)
        Returns:
        immutable copy of this with just the contacts field changed
      • withEvents

        public User withEvents​(List<Event> events)
        Returns an immutable copy of this with just the events field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        events - new value of events field (as defined in service metadata)
        Returns:
        immutable copy of this with just the events field changed
      • withInferenceClassification

        public User withInferenceClassification​(InferenceClassification inferenceClassification)
        Returns an immutable copy of this with just the inferenceClassification field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        inferenceClassification - new value of inferenceClassification field (as defined in service metadata)
        Returns:
        immutable copy of this with just the inferenceClassification field changed
      • withMailFolders

        public User withMailFolders​(List<MailFolder> mailFolders)
        Returns an immutable copy of this with just the mailFolders field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = true

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        mailFolders - new value of mailFolders field (as defined in service metadata)
        Returns:
        immutable copy of this with just the mailFolders field changed
      • withMessages

        public User withMessages​(List<Message> messages)
        Returns an immutable copy of this with just the messages field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Parameters:
        messages - new value of messages field (as defined in service metadata)
        Returns:
        immutable copy of this with just the messages field changed
      • withOutlook

        public User withOutlook​(OutlookUser outlook)
        Returns an immutable copy of this with just the outlook field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Parameters:
        outlook - new value of outlook field (as defined in service metadata)
        Returns:
        immutable copy of this with just the outlook field changed
      • withPeople

        public User withPeople​(List<Person> people)
        Returns an immutable copy of this with just the people field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Parameters:
        people - new value of people field (as defined in service metadata)
        Returns:
        immutable copy of this with just the people field changed
      • withDrive

        public User withDrive​(Drive drive)
      • withManagedDevices

        public User withManagedDevices​(List<ManagedDevice> managedDevices)
        Returns an immutable copy of this with just the managedDevices field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The managed devices associated with the user.”

        Parameters:
        managedDevices - new value of managedDevices field (as defined in service metadata)
        Returns:
        immutable copy of this with just the managedDevices field changed
      • withDeviceManagementTroubleshootingEvents

        public User withDeviceManagementTroubleshootingEvents​(List<DeviceManagementTroubleshootingEvent> deviceManagementTroubleshootingEvents)
        Returns an immutable copy of this with just the deviceManagementTroubleshootingEvents field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The list of troubleshooting events for this user.”

        Parameters:
        deviceManagementTroubleshootingEvents - new value of deviceManagementTroubleshootingEvents field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceManagementTroubleshootingEvents field changed
      • withOnenote

        public User withOnenote​(Onenote onenote)
      • withPhoto

        public User withPhoto​(ProfilePhoto photo)
        Returns an immutable copy of this with just the photo field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = true

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        photo - new value of photo field (as defined in service metadata)
        Returns:
        immutable copy of this with just the photo field changed
      • withPhotos

        public User withPhotos​(List<ProfilePhoto> photos)
        Returns an immutable copy of this with just the photos field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.CountRestrictions

        Countable = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Parameters:
        photos - new value of photos field (as defined in service metadata)
        Returns:
        immutable copy of this with just the photos field changed
      • withPresence

        public User withPresence​(Presence presence)
      • withJoinedTeams

        public User withJoinedTeams​(List<Team> joinedTeams)
      • withTodo

        public User withTodo​(Todo todo)
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class DirectoryObject
      • patch

        public User patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class DirectoryObject
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public User put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class DirectoryObject
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • assignLicense

        public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<User> assignLicense​(List<AssignedLicense> addLicenses,
                                                                                                                   List<UUID> removeLicenses)
      • changePassword

        public com.github.davidmoten.odata.client.ActionRequestNoReturn changePassword​(String currentPassword,
                                                                                       String newPassword)
      • reprocessLicenseAssignment

        public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<User> reprocessLicenseAssignment()
      • retryServiceProvisioning

        public com.github.davidmoten.odata.client.ActionRequestNoReturn retryServiceProvisioning()
      • revokeSignInSessions

        public com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<Boolean> revokeSignInSessions()
      • getMailTips

        public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<MailTips> getMailTips​(List<String> emailAddresses,
                                                                                                       MailTipsType mailTipsOptions)
      • sendMail

        public com.github.davidmoten.odata.client.ActionRequestNoReturn sendMail​(Message message,
                                                                                 Boolean saveToSentItems)
      • removeAllDevicesFromManagement

        public com.github.davidmoten.odata.client.ActionRequestNoReturn removeAllDevicesFromManagement()
      • wipeManagedAppRegistrationsByDeviceTag

        public com.github.davidmoten.odata.client.ActionRequestNoReturn wipeManagedAppRegistrationsByDeviceTag​(String deviceTag)
      • exportPersonalData

        public com.github.davidmoten.odata.client.ActionRequestNoReturn exportPersonalData​(String storageLocation)
      • reminderView

        public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<Reminder> reminderView​(String startDateTime,
                                                                                                        String endDateTime)
      • exportDeviceAndAppManagementData

        public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<DeviceAndAppManagementData> exportDeviceAndAppManagementData()
      • exportDeviceAndAppManagementData_Function

        public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<DeviceAndAppManagementData> exportDeviceAndAppManagementData_Function​(Integer skip,
                                                                                                                                                                       Integer top)
      • getManagedAppDiagnosticStatuses

        public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<ManagedAppDiagnosticStatus> getManagedAppDiagnosticStatuses()
      • getManagedAppPolicies

        public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<ManagedAppPolicy> getManagedAppPolicies()
      • getManagedDevicesWithAppFailures

        public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<String> getManagedDevicesWithAppFailures()