-
Notifications
You must be signed in to change notification settings - Fork 148
Expand file tree
/
Copy pathUser.java
More file actions
2276 lines (2275 loc) · 148 KB
/
User.java
File metadata and controls
2276 lines (2275 loc) · 148 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Represents a Microsoft Entra user account.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class User extends DirectoryObject implements Parsable {
/**
* Instantiates a new {@link User} and sets the default values.
*/
public User() {
super();
this.setOdataType("#microsoft.graph.user");
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link User}
*/
@jakarta.annotation.Nonnull
public static User createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new User();
}
/**
* Gets the aboutMe property value. A freeform text entry field for the user to describe themselves. Returned only on $select.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAboutMe() {
return this.backingStore.get("aboutMe");
}
/**
* Gets the accountEnabled property value. true if the account is enabled; otherwise, false. This property is required when a user is created. Returned only on $select. Supports $filter (eq, ne, not, and in).
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getAccountEnabled() {
return this.backingStore.get("accountEnabled");
}
/**
* Gets the activities property value. The user's activities across devices. Read-only. Nullable.
* @return a {@link java.util.List<UserActivity>}
*/
@jakarta.annotation.Nullable
public java.util.List<UserActivity> getActivities() {
return this.backingStore.get("activities");
}
/**
* Gets the ageGroup property value. Sets the age group of the user. Allowed values: null, Minor, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAgeGroup() {
return this.backingStore.get("ageGroup");
}
/**
* Gets the agreementAcceptances property value. The user's terms of use acceptance statuses. Read-only. Nullable.
* @return a {@link java.util.List<AgreementAcceptance>}
*/
@jakarta.annotation.Nullable
public java.util.List<AgreementAcceptance> getAgreementAcceptances() {
return this.backingStore.get("agreementAcceptances");
}
/**
* Gets the appRoleAssignments property value. Represents the app roles a user is granted for an application. Supports $expand.
* @return a {@link java.util.List<AppRoleAssignment>}
*/
@jakarta.annotation.Nullable
public java.util.List<AppRoleAssignment> getAppRoleAssignments() {
return this.backingStore.get("appRoleAssignments");
}
/**
* Gets the assignedLicenses property value. The licenses that are assigned to the user, including inherited (group-based) licenses. This property doesn't differentiate between directly assigned and inherited licenses. Use the licenseAssignmentStates property to identify the directly assigned and inherited licenses. Not nullable. Returned only on $select. Supports $filter (eq, not, /$count eq 0, /$count ne 0).
* @return a {@link java.util.List<AssignedLicense>}
*/
@jakarta.annotation.Nullable
public java.util.List<AssignedLicense> getAssignedLicenses() {
return this.backingStore.get("assignedLicenses");
}
/**
* Gets the assignedPlans property value. The plans that are assigned to the user. Read-only. Not nullable. Returned only on $select. Supports $filter (eq and not).
* @return a {@link java.util.List<AssignedPlan>}
*/
@jakarta.annotation.Nullable
public java.util.List<AssignedPlan> getAssignedPlans() {
return this.backingStore.get("assignedPlans");
}
/**
* Gets the authentication property value. The authentication methods that are supported for the user.
* @return a {@link Authentication}
*/
@jakarta.annotation.Nullable
public Authentication getAuthentication() {
return this.backingStore.get("authentication");
}
/**
* Gets the authorizationInfo property value. The authorizationInfo property
* @return a {@link AuthorizationInfo}
*/
@jakarta.annotation.Nullable
public AuthorizationInfo getAuthorizationInfo() {
return this.backingStore.get("authorizationInfo");
}
/**
* Gets the birthday property value. The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. Returned only on $select.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getBirthday() {
return this.backingStore.get("birthday");
}
/**
* Gets the businessPhones property value. The telephone numbers for the user. NOTE: Although it's a string collection, only one number can be set for this property. Read-only for users synced from the on-premises directory. Returned by default. Supports $filter (eq, not, ge, le, startsWith).
* @return a {@link java.util.List<String>}
*/
@jakarta.annotation.Nullable
public java.util.List<String> getBusinessPhones() {
return this.backingStore.get("businessPhones");
}
/**
* Gets the calendar property value. The user's primary calendar. Read-only.
* @return a {@link Calendar}
*/
@jakarta.annotation.Nullable
public Calendar getCalendar() {
return this.backingStore.get("calendar");
}
/**
* Gets the calendarGroups property value. The user's calendar groups. Read-only. Nullable.
* @return a {@link java.util.List<CalendarGroup>}
*/
@jakarta.annotation.Nullable
public java.util.List<CalendarGroup> getCalendarGroups() {
return this.backingStore.get("calendarGroups");
}
/**
* Gets the calendars property value. The user's calendars. Read-only. Nullable.
* @return a {@link java.util.List<Calendar>}
*/
@jakarta.annotation.Nullable
public java.util.List<Calendar> getCalendars() {
return this.backingStore.get("calendars");
}
/**
* Gets the calendarView property value. The calendar view for the calendar. Read-only. Nullable.
* @return a {@link java.util.List<Event>}
*/
@jakarta.annotation.Nullable
public java.util.List<Event> getCalendarView() {
return this.backingStore.get("calendarView");
}
/**
* Gets the chats property value. The chats property
* @return a {@link java.util.List<Chat>}
*/
@jakarta.annotation.Nullable
public java.util.List<Chat> getChats() {
return this.backingStore.get("chats");
}
/**
* Gets the city property value. The city where the user is located. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCity() {
return this.backingStore.get("city");
}
/**
* Gets the cloudClipboard property value. The cloudClipboard property
* @return a {@link CloudClipboardRoot}
*/
@jakarta.annotation.Nullable
public CloudClipboardRoot getCloudClipboard() {
return this.backingStore.get("cloudClipboard");
}
/**
* Gets the cloudPCs property value. The user's Cloud PCs. Read-only. Nullable.
* @return a {@link java.util.List<CloudPC>}
*/
@jakarta.annotation.Nullable
public java.util.List<CloudPC> getCloudPCs() {
return this.backingStore.get("cloudPCs");
}
/**
* Gets the companyName property value. The name of the company that the user is associated with. This property can be useful for describing the company that a guest comes from. The maximum length is 64 characters.Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCompanyName() {
return this.backingStore.get("companyName");
}
/**
* Gets the consentProvidedForMinor property value. Sets whether consent was obtained for minors. Allowed values: null, Granted, Denied, and NotRequired. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getConsentProvidedForMinor() {
return this.backingStore.get("consentProvidedForMinor");
}
/**
* Gets the contactFolders property value. The user's contacts folders. Read-only. Nullable.
* @return a {@link java.util.List<ContactFolder>}
*/
@jakarta.annotation.Nullable
public java.util.List<ContactFolder> getContactFolders() {
return this.backingStore.get("contactFolders");
}
/**
* Gets the contacts property value. The user's contacts. Read-only. Nullable.
* @return a {@link java.util.List<Contact>}
*/
@jakarta.annotation.Nullable
public java.util.List<Contact> getContacts() {
return this.backingStore.get("contacts");
}
/**
* Gets the country property value. The country or region where the user is located; for example, US or UK. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCountry() {
return this.backingStore.get("country");
}
/**
* Gets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and UTC. The value can't be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Microsoft Entra ID. Property is null for some users created before June 2018 and on-premises users that were synced to Microsoft Entra ID before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCreatedDateTime() {
return this.backingStore.get("createdDateTime");
}
/**
* Gets the createdObjects property value. Directory objects that the user created. Read-only. Nullable.
* @return a {@link java.util.List<DirectoryObject>}
*/
@jakarta.annotation.Nullable
public java.util.List<DirectoryObject> getCreatedObjects() {
return this.backingStore.get("createdObjects");
}
/**
* Gets the creationType property value. Indicates whether the user account was created through one of the following methods: As a regular school or work account (null). As an external account (Invitation). As a local account for an Azure Active Directory B2C tenant (LocalAccount). Through self-service sign-up by an internal user using email verification (EmailVerified). Through self-service sign-up by a guest signing up through a link that is part of a user flow (SelfServiceSignUp). Read-only.Returned only on $select. Supports $filter (eq, ne, not, in).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCreationType() {
return this.backingStore.get("creationType");
}
/**
* Gets the customSecurityAttributes property value. An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). The filter value is case-sensitive. To read this property, the calling app must be assigned the CustomSecAttributeAssignment.Read.All permission. To write this property, the calling app must be assigned the CustomSecAttributeAssignment.ReadWrite.All permissions. To read or write this property in delegated scenarios, the admin must be assigned the Attribute Assignment Administrator role.
* @return a {@link CustomSecurityAttributeValue}
*/
@jakarta.annotation.Nullable
public CustomSecurityAttributeValue getCustomSecurityAttributes() {
return this.backingStore.get("customSecurityAttributes");
}
/**
* Gets the dataSecurityAndGovernance property value. The data security and governance settings for the user. Read-only. Nullable.
* @return a {@link UserDataSecurityAndGovernance}
*/
@jakarta.annotation.Nullable
public UserDataSecurityAndGovernance getDataSecurityAndGovernance() {
return this.backingStore.get("dataSecurityAndGovernance");
}
/**
* Gets the department property value. The name of the department in which the user works. Maximum length is 64 characters. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDepartment() {
return this.backingStore.get("department");
}
/**
* Gets the deviceEnrollmentLimit property value. The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getDeviceEnrollmentLimit() {
return this.backingStore.get("deviceEnrollmentLimit");
}
/**
* Gets the deviceManagementTroubleshootingEvents property value. The list of troubleshooting events for this user.
* @return a {@link java.util.List<DeviceManagementTroubleshootingEvent>}
*/
@jakarta.annotation.Nullable
public java.util.List<DeviceManagementTroubleshootingEvent> getDeviceManagementTroubleshootingEvents() {
return this.backingStore.get("deviceManagementTroubleshootingEvents");
}
/**
* Gets the directReports property value. The users and contacts that report to the user. (The users and contacts that have their manager property set to this user.) Read-only. Nullable. Supports $expand.
* @return a {@link java.util.List<DirectoryObject>}
*/
@jakarta.annotation.Nullable
public java.util.List<DirectoryObject> getDirectReports() {
return this.backingStore.get("directReports");
}
/**
* Gets the displayName property value. The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and family name. This property is required when a user is created and it can't be cleared during updates. Maximum length is 256 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values), $orderby, and $search.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* Gets the drive property value. The user's OneDrive. Read-only.
* @return a {@link Drive}
*/
@jakarta.annotation.Nullable
public Drive getDrive() {
return this.backingStore.get("drive");
}
/**
* Gets the drives property value. A collection of drives available for this user. Read-only.
* @return a {@link java.util.List<Drive>}
*/
@jakarta.annotation.Nullable
public java.util.List<Drive> getDrives() {
return this.backingStore.get("drives");
}
/**
* Gets the employeeExperience property value. The employeeExperience property
* @return a {@link EmployeeExperienceUser}
*/
@jakarta.annotation.Nullable
public EmployeeExperienceUser getEmployeeExperience() {
return this.backingStore.get("employeeExperience");
}
/**
* Gets the employeeHireDate property value. The date and time when the user was hired or will start work in a future hire. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getEmployeeHireDate() {
return this.backingStore.get("employeeHireDate");
}
/**
* Gets the employeeId property value. The employee identifier assigned to the user by the organization. The maximum length is 16 characters. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getEmployeeId() {
return this.backingStore.get("employeeId");
}
/**
* Gets the employeeLeaveDateTime property value. The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs at least one of the following Microsoft Entra roles: Lifecycle Workflows Administrator (least privilege), Global Reader. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getEmployeeLeaveDateTime() {
return this.backingStore.get("employeeLeaveDateTime");
}
/**
* Gets the employeeOrgData property value. Represents organization data (for example, division and costCenter) associated with a user. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in).
* @return a {@link EmployeeOrgData}
*/
@jakarta.annotation.Nullable
public EmployeeOrgData getEmployeeOrgData() {
return this.backingStore.get("employeeOrgData");
}
/**
* Gets the employeeType property value. Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getEmployeeType() {
return this.backingStore.get("employeeType");
}
/**
* Gets the events property value. The user's events. Default is to show Events under the Default Calendar. Read-only. Nullable.
* @return a {@link java.util.List<Event>}
*/
@jakarta.annotation.Nullable
public java.util.List<Event> getEvents() {
return this.backingStore.get("events");
}
/**
* Gets the extensions property value. The collection of open extensions defined for the user. Read-only. Supports $expand. Nullable.
* @return a {@link java.util.List<Extension>}
*/
@jakarta.annotation.Nullable
public java.util.List<Extension> getExtensions() {
return this.backingStore.get("extensions");
}
/**
* Gets the externalUserState property value. For a guest invited to the tenant using the invitation API, this property represents the invited user's invitation status. For invited users, the state can be PendingAcceptance or Accepted, or null for all other users. Returned only on $select. Supports $filter (eq, ne, not , in).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getExternalUserState() {
return this.backingStore.get("externalUserState");
}
/**
* Gets the externalUserStateChangeDateTime property value. Shows the timestamp for the latest change to the externalUserState property. Returned only on $select. Supports $filter (eq, ne, not , in).
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getExternalUserStateChangeDateTime() {
return this.backingStore.get("externalUserStateChangeDateTime");
}
/**
* Gets the faxNumber property value. The fax number of the user. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getFaxNumber() {
return this.backingStore.get("faxNumber");
}
/**
* The deserialization information for the current model
* @return a {@link Map<String, java.util.function.Consumer<ParseNode>>}
*/
@jakarta.annotation.Nonnull
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(super.getFieldDeserializers());
deserializerMap.put("aboutMe", (n) -> { this.setAboutMe(n.getStringValue()); });
deserializerMap.put("accountEnabled", (n) -> { this.setAccountEnabled(n.getBooleanValue()); });
deserializerMap.put("activities", (n) -> { this.setActivities(n.getCollectionOfObjectValues(UserActivity::createFromDiscriminatorValue)); });
deserializerMap.put("ageGroup", (n) -> { this.setAgeGroup(n.getStringValue()); });
deserializerMap.put("agreementAcceptances", (n) -> { this.setAgreementAcceptances(n.getCollectionOfObjectValues(AgreementAcceptance::createFromDiscriminatorValue)); });
deserializerMap.put("appRoleAssignments", (n) -> { this.setAppRoleAssignments(n.getCollectionOfObjectValues(AppRoleAssignment::createFromDiscriminatorValue)); });
deserializerMap.put("assignedLicenses", (n) -> { this.setAssignedLicenses(n.getCollectionOfObjectValues(AssignedLicense::createFromDiscriminatorValue)); });
deserializerMap.put("assignedPlans", (n) -> { this.setAssignedPlans(n.getCollectionOfObjectValues(AssignedPlan::createFromDiscriminatorValue)); });
deserializerMap.put("authentication", (n) -> { this.setAuthentication(n.getObjectValue(Authentication::createFromDiscriminatorValue)); });
deserializerMap.put("authorizationInfo", (n) -> { this.setAuthorizationInfo(n.getObjectValue(AuthorizationInfo::createFromDiscriminatorValue)); });
deserializerMap.put("birthday", (n) -> { this.setBirthday(n.getOffsetDateTimeValue()); });
deserializerMap.put("businessPhones", (n) -> { this.setBusinessPhones(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("calendar", (n) -> { this.setCalendar(n.getObjectValue(Calendar::createFromDiscriminatorValue)); });
deserializerMap.put("calendarGroups", (n) -> { this.setCalendarGroups(n.getCollectionOfObjectValues(CalendarGroup::createFromDiscriminatorValue)); });
deserializerMap.put("calendars", (n) -> { this.setCalendars(n.getCollectionOfObjectValues(Calendar::createFromDiscriminatorValue)); });
deserializerMap.put("calendarView", (n) -> { this.setCalendarView(n.getCollectionOfObjectValues(Event::createFromDiscriminatorValue)); });
deserializerMap.put("chats", (n) -> { this.setChats(n.getCollectionOfObjectValues(Chat::createFromDiscriminatorValue)); });
deserializerMap.put("city", (n) -> { this.setCity(n.getStringValue()); });
deserializerMap.put("cloudClipboard", (n) -> { this.setCloudClipboard(n.getObjectValue(CloudClipboardRoot::createFromDiscriminatorValue)); });
deserializerMap.put("cloudPCs", (n) -> { this.setCloudPCs(n.getCollectionOfObjectValues(CloudPC::createFromDiscriminatorValue)); });
deserializerMap.put("companyName", (n) -> { this.setCompanyName(n.getStringValue()); });
deserializerMap.put("consentProvidedForMinor", (n) -> { this.setConsentProvidedForMinor(n.getStringValue()); });
deserializerMap.put("contactFolders", (n) -> { this.setContactFolders(n.getCollectionOfObjectValues(ContactFolder::createFromDiscriminatorValue)); });
deserializerMap.put("contacts", (n) -> { this.setContacts(n.getCollectionOfObjectValues(Contact::createFromDiscriminatorValue)); });
deserializerMap.put("country", (n) -> { this.setCountry(n.getStringValue()); });
deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("createdObjects", (n) -> { this.setCreatedObjects(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("creationType", (n) -> { this.setCreationType(n.getStringValue()); });
deserializerMap.put("customSecurityAttributes", (n) -> { this.setCustomSecurityAttributes(n.getObjectValue(CustomSecurityAttributeValue::createFromDiscriminatorValue)); });
deserializerMap.put("dataSecurityAndGovernance", (n) -> { this.setDataSecurityAndGovernance(n.getObjectValue(UserDataSecurityAndGovernance::createFromDiscriminatorValue)); });
deserializerMap.put("department", (n) -> { this.setDepartment(n.getStringValue()); });
deserializerMap.put("deviceEnrollmentLimit", (n) -> { this.setDeviceEnrollmentLimit(n.getIntegerValue()); });
deserializerMap.put("deviceManagementTroubleshootingEvents", (n) -> { this.setDeviceManagementTroubleshootingEvents(n.getCollectionOfObjectValues(DeviceManagementTroubleshootingEvent::createFromDiscriminatorValue)); });
deserializerMap.put("directReports", (n) -> { this.setDirectReports(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("drive", (n) -> { this.setDrive(n.getObjectValue(Drive::createFromDiscriminatorValue)); });
deserializerMap.put("drives", (n) -> { this.setDrives(n.getCollectionOfObjectValues(Drive::createFromDiscriminatorValue)); });
deserializerMap.put("employeeExperience", (n) -> { this.setEmployeeExperience(n.getObjectValue(EmployeeExperienceUser::createFromDiscriminatorValue)); });
deserializerMap.put("employeeHireDate", (n) -> { this.setEmployeeHireDate(n.getOffsetDateTimeValue()); });
deserializerMap.put("employeeId", (n) -> { this.setEmployeeId(n.getStringValue()); });
deserializerMap.put("employeeLeaveDateTime", (n) -> { this.setEmployeeLeaveDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("employeeOrgData", (n) -> { this.setEmployeeOrgData(n.getObjectValue(EmployeeOrgData::createFromDiscriminatorValue)); });
deserializerMap.put("employeeType", (n) -> { this.setEmployeeType(n.getStringValue()); });
deserializerMap.put("events", (n) -> { this.setEvents(n.getCollectionOfObjectValues(Event::createFromDiscriminatorValue)); });
deserializerMap.put("extensions", (n) -> { this.setExtensions(n.getCollectionOfObjectValues(Extension::createFromDiscriminatorValue)); });
deserializerMap.put("externalUserState", (n) -> { this.setExternalUserState(n.getStringValue()); });
deserializerMap.put("externalUserStateChangeDateTime", (n) -> { this.setExternalUserStateChangeDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("faxNumber", (n) -> { this.setFaxNumber(n.getStringValue()); });
deserializerMap.put("followedSites", (n) -> { this.setFollowedSites(n.getCollectionOfObjectValues(Site::createFromDiscriminatorValue)); });
deserializerMap.put("givenName", (n) -> { this.setGivenName(n.getStringValue()); });
deserializerMap.put("hireDate", (n) -> { this.setHireDate(n.getOffsetDateTimeValue()); });
deserializerMap.put("identities", (n) -> { this.setIdentities(n.getCollectionOfObjectValues(ObjectIdentity::createFromDiscriminatorValue)); });
deserializerMap.put("imAddresses", (n) -> { this.setImAddresses(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("inferenceClassification", (n) -> { this.setInferenceClassification(n.getObjectValue(InferenceClassification::createFromDiscriminatorValue)); });
deserializerMap.put("insights", (n) -> { this.setInsights(n.getObjectValue(ItemInsights::createFromDiscriminatorValue)); });
deserializerMap.put("interests", (n) -> { this.setInterests(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("isManagementRestricted", (n) -> { this.setIsManagementRestricted(n.getBooleanValue()); });
deserializerMap.put("isResourceAccount", (n) -> { this.setIsResourceAccount(n.getBooleanValue()); });
deserializerMap.put("jobTitle", (n) -> { this.setJobTitle(n.getStringValue()); });
deserializerMap.put("joinedTeams", (n) -> { this.setJoinedTeams(n.getCollectionOfObjectValues(Team::createFromDiscriminatorValue)); });
deserializerMap.put("lastPasswordChangeDateTime", (n) -> { this.setLastPasswordChangeDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("legalAgeGroupClassification", (n) -> { this.setLegalAgeGroupClassification(n.getStringValue()); });
deserializerMap.put("licenseAssignmentStates", (n) -> { this.setLicenseAssignmentStates(n.getCollectionOfObjectValues(LicenseAssignmentState::createFromDiscriminatorValue)); });
deserializerMap.put("licenseDetails", (n) -> { this.setLicenseDetails(n.getCollectionOfObjectValues(LicenseDetails::createFromDiscriminatorValue)); });
deserializerMap.put("mail", (n) -> { this.setMail(n.getStringValue()); });
deserializerMap.put("mailboxSettings", (n) -> { this.setMailboxSettings(n.getObjectValue(MailboxSettings::createFromDiscriminatorValue)); });
deserializerMap.put("mailFolders", (n) -> { this.setMailFolders(n.getCollectionOfObjectValues(MailFolder::createFromDiscriminatorValue)); });
deserializerMap.put("mailNickname", (n) -> { this.setMailNickname(n.getStringValue()); });
deserializerMap.put("managedAppRegistrations", (n) -> { this.setManagedAppRegistrations(n.getCollectionOfObjectValues(ManagedAppRegistration::createFromDiscriminatorValue)); });
deserializerMap.put("managedDevices", (n) -> { this.setManagedDevices(n.getCollectionOfObjectValues(ManagedDevice::createFromDiscriminatorValue)); });
deserializerMap.put("manager", (n) -> { this.setManager(n.getObjectValue(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("memberOf", (n) -> { this.setMemberOf(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("messages", (n) -> { this.setMessages(n.getCollectionOfObjectValues(Message::createFromDiscriminatorValue)); });
deserializerMap.put("mobilePhone", (n) -> { this.setMobilePhone(n.getStringValue()); });
deserializerMap.put("mySite", (n) -> { this.setMySite(n.getStringValue()); });
deserializerMap.put("oauth2PermissionGrants", (n) -> { this.setOauth2PermissionGrants(n.getCollectionOfObjectValues(OAuth2PermissionGrant::createFromDiscriminatorValue)); });
deserializerMap.put("officeLocation", (n) -> { this.setOfficeLocation(n.getStringValue()); });
deserializerMap.put("onenote", (n) -> { this.setOnenote(n.getObjectValue(Onenote::createFromDiscriminatorValue)); });
deserializerMap.put("onlineMeetings", (n) -> { this.setOnlineMeetings(n.getCollectionOfObjectValues(OnlineMeeting::createFromDiscriminatorValue)); });
deserializerMap.put("onPremisesDistinguishedName", (n) -> { this.setOnPremisesDistinguishedName(n.getStringValue()); });
deserializerMap.put("onPremisesDomainName", (n) -> { this.setOnPremisesDomainName(n.getStringValue()); });
deserializerMap.put("onPremisesExtensionAttributes", (n) -> { this.setOnPremisesExtensionAttributes(n.getObjectValue(OnPremisesExtensionAttributes::createFromDiscriminatorValue)); });
deserializerMap.put("onPremisesImmutableId", (n) -> { this.setOnPremisesImmutableId(n.getStringValue()); });
deserializerMap.put("onPremisesLastSyncDateTime", (n) -> { this.setOnPremisesLastSyncDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("onPremisesProvisioningErrors", (n) -> { this.setOnPremisesProvisioningErrors(n.getCollectionOfObjectValues(OnPremisesProvisioningError::createFromDiscriminatorValue)); });
deserializerMap.put("onPremisesSamAccountName", (n) -> { this.setOnPremisesSamAccountName(n.getStringValue()); });
deserializerMap.put("onPremisesSecurityIdentifier", (n) -> { this.setOnPremisesSecurityIdentifier(n.getStringValue()); });
deserializerMap.put("onPremisesSyncEnabled", (n) -> { this.setOnPremisesSyncEnabled(n.getBooleanValue()); });
deserializerMap.put("onPremisesUserPrincipalName", (n) -> { this.setOnPremisesUserPrincipalName(n.getStringValue()); });
deserializerMap.put("otherMails", (n) -> { this.setOtherMails(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("outlook", (n) -> { this.setOutlook(n.getObjectValue(OutlookUser::createFromDiscriminatorValue)); });
deserializerMap.put("ownedDevices", (n) -> { this.setOwnedDevices(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("ownedObjects", (n) -> { this.setOwnedObjects(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("passwordPolicies", (n) -> { this.setPasswordPolicies(n.getStringValue()); });
deserializerMap.put("passwordProfile", (n) -> { this.setPasswordProfile(n.getObjectValue(PasswordProfile::createFromDiscriminatorValue)); });
deserializerMap.put("pastProjects", (n) -> { this.setPastProjects(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("people", (n) -> { this.setPeople(n.getCollectionOfObjectValues(Person::createFromDiscriminatorValue)); });
deserializerMap.put("permissionGrants", (n) -> { this.setPermissionGrants(n.getCollectionOfObjectValues(ResourceSpecificPermissionGrant::createFromDiscriminatorValue)); });
deserializerMap.put("photo", (n) -> { this.setPhoto(n.getObjectValue(ProfilePhoto::createFromDiscriminatorValue)); });
deserializerMap.put("photos", (n) -> { this.setPhotos(n.getCollectionOfObjectValues(ProfilePhoto::createFromDiscriminatorValue)); });
deserializerMap.put("planner", (n) -> { this.setPlanner(n.getObjectValue(PlannerUser::createFromDiscriminatorValue)); });
deserializerMap.put("postalCode", (n) -> { this.setPostalCode(n.getStringValue()); });
deserializerMap.put("preferredDataLocation", (n) -> { this.setPreferredDataLocation(n.getStringValue()); });
deserializerMap.put("preferredLanguage", (n) -> { this.setPreferredLanguage(n.getStringValue()); });
deserializerMap.put("preferredName", (n) -> { this.setPreferredName(n.getStringValue()); });
deserializerMap.put("presence", (n) -> { this.setPresence(n.getObjectValue(Presence::createFromDiscriminatorValue)); });
deserializerMap.put("print", (n) -> { this.setPrint(n.getObjectValue(UserPrint::createFromDiscriminatorValue)); });
deserializerMap.put("provisionedPlans", (n) -> { this.setProvisionedPlans(n.getCollectionOfObjectValues(ProvisionedPlan::createFromDiscriminatorValue)); });
deserializerMap.put("proxyAddresses", (n) -> { this.setProxyAddresses(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("registeredDevices", (n) -> { this.setRegisteredDevices(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("responsibilities", (n) -> { this.setResponsibilities(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("schools", (n) -> { this.setSchools(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("scopedRoleMemberOf", (n) -> { this.setScopedRoleMemberOf(n.getCollectionOfObjectValues(ScopedRoleMembership::createFromDiscriminatorValue)); });
deserializerMap.put("securityIdentifier", (n) -> { this.setSecurityIdentifier(n.getStringValue()); });
deserializerMap.put("serviceProvisioningErrors", (n) -> { this.setServiceProvisioningErrors(n.getCollectionOfObjectValues(ServiceProvisioningError::createFromDiscriminatorValue)); });
deserializerMap.put("settings", (n) -> { this.setSettings(n.getObjectValue(UserSettings::createFromDiscriminatorValue)); });
deserializerMap.put("showInAddressList", (n) -> { this.setShowInAddressList(n.getBooleanValue()); });
deserializerMap.put("signInActivity", (n) -> { this.setSignInActivity(n.getObjectValue(SignInActivity::createFromDiscriminatorValue)); });
deserializerMap.put("signInSessionsValidFromDateTime", (n) -> { this.setSignInSessionsValidFromDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("skills", (n) -> { this.setSkills(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("solutions", (n) -> { this.setSolutions(n.getObjectValue(UserSolutionRoot::createFromDiscriminatorValue)); });
deserializerMap.put("sponsors", (n) -> { this.setSponsors(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("state", (n) -> { this.setState(n.getStringValue()); });
deserializerMap.put("streetAddress", (n) -> { this.setStreetAddress(n.getStringValue()); });
deserializerMap.put("surname", (n) -> { this.setSurname(n.getStringValue()); });
deserializerMap.put("teamwork", (n) -> { this.setTeamwork(n.getObjectValue(UserTeamwork::createFromDiscriminatorValue)); });
deserializerMap.put("todo", (n) -> { this.setTodo(n.getObjectValue(Todo::createFromDiscriminatorValue)); });
deserializerMap.put("transitiveMemberOf", (n) -> { this.setTransitiveMemberOf(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("usageLocation", (n) -> { this.setUsageLocation(n.getStringValue()); });
deserializerMap.put("userPrincipalName", (n) -> { this.setUserPrincipalName(n.getStringValue()); });
deserializerMap.put("userType", (n) -> { this.setUserType(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the followedSites property value. The followedSites property
* @return a {@link java.util.List<Site>}
*/
@jakarta.annotation.Nullable
public java.util.List<Site> getFollowedSites() {
return this.backingStore.get("followedSites");
}
/**
* Gets the givenName property value. The given name (first name) of the user. Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getGivenName() {
return this.backingStore.get("givenName");
}
/**
* Gets the hireDate property value. The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. Returned only on $select. Note: This property is specific to SharePoint in Microsoft 365. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getHireDate() {
return this.backingStore.get("hireDate");
}
/**
* Gets the identities property value. Represents the identities that can be used to sign in to this user account. Microsoft (also known as a local account), organizations, or social identity providers such as Facebook, Google, and Microsoft can provide identity and tie it to a user account. It might contain multiple items with the same signInType value. Returned only on $select. Supports $filter (eq) with limitations.
* @return a {@link java.util.List<ObjectIdentity>}
*/
@jakarta.annotation.Nullable
public java.util.List<ObjectIdentity> getIdentities() {
return this.backingStore.get("identities");
}
/**
* Gets the imAddresses property value. The instant message voice-over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only. Returned only on $select. Supports $filter (eq, not, ge, le, startsWith).
* @return a {@link java.util.List<String>}
*/
@jakarta.annotation.Nullable
public java.util.List<String> getImAddresses() {
return this.backingStore.get("imAddresses");
}
/**
* Gets the inferenceClassification property value. Relevance classification of the user's messages based on explicit designations that override inferred relevance or importance.
* @return a {@link InferenceClassification}
*/
@jakarta.annotation.Nullable
public InferenceClassification getInferenceClassification() {
return this.backingStore.get("inferenceClassification");
}
/**
* Gets the insights property value. Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable.
* @return a {@link ItemInsights}
*/
@jakarta.annotation.Nullable
public ItemInsights getInsights() {
return this.backingStore.get("insights");
}
/**
* Gets the interests property value. A list for the user to describe their interests. Returned only on $select.
* @return a {@link java.util.List<String>}
*/
@jakarta.annotation.Nullable
public java.util.List<String> getInterests() {
return this.backingStore.get("interests");
}
/**
* Gets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit. If not set, the default value is null and the default behavior is false. Read-only. To manage a user who is a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. Returned only on $select.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsManagementRestricted() {
return this.backingStore.get("isManagementRestricted");
}
/**
* Gets the isResourceAccount property value. Don't use reserved for future use.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsResourceAccount() {
return this.backingStore.get("isResourceAccount");
}
/**
* Gets the jobTitle property value. The user's job title. Maximum length is 128 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getJobTitle() {
return this.backingStore.get("jobTitle");
}
/**
* Gets the joinedTeams property value. The joinedTeams property
* @return a {@link java.util.List<Team>}
*/
@jakarta.annotation.Nullable
public java.util.List<Team> getJoinedTeams() {
return this.backingStore.get("joinedTeams");
}
/**
* Gets the lastPasswordChangeDateTime property value. The time when this Microsoft Entra user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastPasswordChangeDateTime() {
return this.backingStore.get("lastPasswordChangeDateTime");
}
/**
* Gets the legalAgeGroupClassification property value. Used by enterprise applications to determine the legal age group of the user. This property is read-only and calculated based on ageGroup and consentProvidedForMinor properties. Allowed values: null, Undefined, MinorWithOutParentalConsent, MinorWithParentalConsent, MinorNoParentalConsentRequired, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getLegalAgeGroupClassification() {
return this.backingStore.get("legalAgeGroupClassification");
}
/**
* Gets the licenseAssignmentStates property value. State of license assignments for this user. Also indicates licenses that are directly assigned or the user inherited through group memberships. Read-only. Returned only on $select.
* @return a {@link java.util.List<LicenseAssignmentState>}
*/
@jakarta.annotation.Nullable
public java.util.List<LicenseAssignmentState> getLicenseAssignmentStates() {
return this.backingStore.get("licenseAssignmentStates");
}
/**
* Gets the licenseDetails property value. A collection of this user's license details. Read-only.
* @return a {@link java.util.List<LicenseDetails>}
*/
@jakarta.annotation.Nullable
public java.util.List<LicenseDetails> getLicenseDetails() {
return this.backingStore.get("licenseDetails");
}
/**
* Gets the mail property value. The SMTP address for the user, for example, jeff@contoso.com. Changes to this property update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, endsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMail() {
return this.backingStore.get("mail");
}
/**
* Gets the mailboxSettings property value. Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select.
* @return a {@link MailboxSettings}
*/
@jakarta.annotation.Nullable
public MailboxSettings getMailboxSettings() {
return this.backingStore.get("mailboxSettings");
}
/**
* Gets the mailFolders property value. The user's mail folders. Read-only. Nullable.
* @return a {@link java.util.List<MailFolder>}
*/
@jakarta.annotation.Nullable
public java.util.List<MailFolder> getMailFolders() {
return this.backingStore.get("mailFolders");
}
/**
* Gets the mailNickname property value. The mail alias for the user. This property must be specified when a user is created. Maximum length is 64 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMailNickname() {
return this.backingStore.get("mailNickname");
}
/**
* Gets the managedAppRegistrations property value. Zero or more managed app registrations that belong to the user.
* @return a {@link java.util.List<ManagedAppRegistration>}
*/
@jakarta.annotation.Nullable
public java.util.List<ManagedAppRegistration> getManagedAppRegistrations() {
return this.backingStore.get("managedAppRegistrations");
}
/**
* Gets the managedDevices property value. The managed devices associated with the user.
* @return a {@link java.util.List<ManagedDevice>}
*/
@jakarta.annotation.Nullable
public java.util.List<ManagedDevice> getManagedDevices() {
return this.backingStore.get("managedDevices");
}
/**
* Gets the manager property value. The user or contact that is this user's manager. Read-only. Supports $expand.
* @return a {@link DirectoryObject}
*/
@jakarta.annotation.Nullable
public DirectoryObject getManager() {
return this.backingStore.get("manager");
}
/**
* Gets the memberOf property value. The groups and directory roles that the user is a member of. Read-only. Nullable. Supports $expand.
* @return a {@link java.util.List<DirectoryObject>}
*/
@jakarta.annotation.Nullable
public java.util.List<DirectoryObject> getMemberOf() {
return this.backingStore.get("memberOf");
}
/**
* Gets the messages property value. The messages in a mailbox or folder. Read-only. Nullable.
* @return a {@link java.util.List<Message>}
*/
@jakarta.annotation.Nullable
public java.util.List<Message> getMessages() {
return this.backingStore.get("messages");
}
/**
* Gets the mobilePhone property value. The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory. Maximum length is 64 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values) and $search.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMobilePhone() {
return this.backingStore.get("mobilePhone");
}
/**
* Gets the mySite property value. The URL for the user's site. Returned only on $select.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMySite() {
return this.backingStore.get("mySite");
}
/**
* Gets the oauth2PermissionGrants property value. The oauth2PermissionGrants property
* @return a {@link java.util.List<OAuth2PermissionGrant>}
*/
@jakarta.annotation.Nullable
public java.util.List<OAuth2PermissionGrant> getOauth2PermissionGrants() {
return this.backingStore.get("oauth2PermissionGrants");
}
/**
* Gets the officeLocation property value. The office location in the user's place of business. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOfficeLocation() {
return this.backingStore.get("officeLocation");
}
/**
* Gets the onenote property value. The onenote property
* @return a {@link Onenote}
*/
@jakarta.annotation.Nullable
public Onenote getOnenote() {
return this.backingStore.get("onenote");
}
/**
* Gets the onlineMeetings property value. Information about a meeting, including the URL used to join a meeting, the attendees list, and the description.
* @return a {@link java.util.List<OnlineMeeting>}
*/
@jakarta.annotation.Nullable
public java.util.List<OnlineMeeting> getOnlineMeetings() {
return this.backingStore.get("onlineMeetings");
}
/**
* Gets the onPremisesDistinguishedName property value. Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOnPremisesDistinguishedName() {
return this.backingStore.get("onPremisesDistinguishedName");
}
/**
* Gets the onPremisesDomainName property value. Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOnPremisesDomainName() {
return this.backingStore.get("onPremisesDomainName");
}
/**
* Gets the onPremisesExtensionAttributes property value. Contains extensionAttributes1-15 for the user. These extension attributes are also known as Exchange custom attributes 1-15. Each attribute can store up to 1024 characters. For an onPremisesSyncEnabled user, the source of authority for this set of properties is the on-premises and is read-only. For a cloud-only user (where onPremisesSyncEnabled is false), these properties can be set during the creation or update of a user object. For a cloud-only user previously synced from on-premises Active Directory, these properties are read-only in Microsoft Graph but can be fully managed through the Exchange Admin Center or the Exchange Online V2 module in PowerShell. Returned only on $select. Supports $filter (eq, ne, not, in).
* @return a {@link OnPremisesExtensionAttributes}
*/
@jakarta.annotation.Nullable
public OnPremisesExtensionAttributes getOnPremisesExtensionAttributes() {
return this.backingStore.get("onPremisesExtensionAttributes");
}
/**
* Gets the onPremisesImmutableId property value. This property is used to associate an on-premises Active Directory user account to their Microsoft Entra user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOnPremisesImmutableId() {
return this.backingStore.get("onPremisesImmutableId");
}
/**
* Gets the onPremisesLastSyncDateTime property value. Indicates the last time at which the object was synced with the on-premises directory; for example: 2013-02-16T03:04:54Z. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getOnPremisesLastSyncDateTime() {
return this.backingStore.get("onPremisesLastSyncDateTime");
}
/**
* Gets the onPremisesProvisioningErrors property value. Errors when using Microsoft synchronization product during provisioning. Returned only on $select. Supports $filter (eq, not, ge, le).
* @return a {@link java.util.List<OnPremisesProvisioningError>}
*/
@jakarta.annotation.Nullable
public java.util.List<OnPremisesProvisioningError> getOnPremisesProvisioningErrors() {
return this.backingStore.get("onPremisesProvisioningErrors");
}
/**
* Gets the onPremisesSamAccountName property value. Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOnPremisesSamAccountName() {
return this.backingStore.get("onPremisesSamAccountName");
}
/**
* Gets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq including on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOnPremisesSecurityIdentifier() {
return this.backingStore.get("onPremisesSecurityIdentifier");
}
/**
* Gets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Microsoft Entra ID. Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values).
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getOnPremisesSyncEnabled() {
return this.backingStore.get("onPremisesSyncEnabled");
}
/**
* Gets the onPremisesUserPrincipalName property value. Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOnPremisesUserPrincipalName() {
return this.backingStore.get("onPremisesUserPrincipalName");
}
/**
* Gets the otherMails property value. A list of other email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com']. Can store up to 250 values, each with a limit of 250 characters. NOTE: This property can't contain accent characters. Returned only on $select. Supports $filter (eq, not, ge, le, in, startsWith, endsWith, /$count eq 0, /$count ne 0).
* @return a {@link java.util.List<String>}
*/
@jakarta.annotation.Nullable
public java.util.List<String> getOtherMails() {
return this.backingStore.get("otherMails");
}
/**
* Gets the outlook property value. The outlook property
* @return a {@link OutlookUser}
*/
@jakarta.annotation.Nullable
public OutlookUser getOutlook() {
return this.backingStore.get("outlook");
}
/**
* Gets the ownedDevices property value. Devices the user owns. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).
* @return a {@link java.util.List<DirectoryObject>}
*/
@jakarta.annotation.Nullable
public java.util.List<DirectoryObject> getOwnedDevices() {
return this.backingStore.get("ownedDevices");
}
/**
* Gets the ownedObjects property value. Directory objects the user owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).
* @return a {@link java.util.List<DirectoryObject>}
*/
@jakarta.annotation.Nullable
public java.util.List<DirectoryObject> getOwnedObjects() {
return this.backingStore.get("ownedObjects");
}
/**
* Gets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two might be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Microsoft Entra password policies. Supports $filter (ne, not, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPasswordPolicies() {
return this.backingStore.get("passwordPolicies");
}
/**
* Gets the passwordProfile property value. Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). To update this property: User-PasswordProfile.ReadWrite.All is the least privileged permission to update this property. In delegated scenarios, the User Administrator Microsoft Entra role is the least privileged admin role supported to update this property for nonadmin users. Privileged Authentication Administrator is the least privileged role that's allowed to update this property for all administrators in the tenant. In general, the signed-in user must have a higher privileged administrator role as indicated in Who can reset passwords. In app-only scenarios, the calling app must be assigned a supported permission and at least the User Administrator Microsoft Entra role.
* @return a {@link PasswordProfile}
*/
@jakarta.annotation.Nullable
public PasswordProfile getPasswordProfile() {
return this.backingStore.get("passwordProfile");
}
/**
* Gets the pastProjects property value. A list for the user to enumerate their past projects. Returned only on $select.
* @return a {@link java.util.List<String>}
*/
@jakarta.annotation.Nullable
public java.util.List<String> getPastProjects() {
return this.backingStore.get("pastProjects");
}
/**
* Gets the people property value. People that are relevant to the user. Read-only. Nullable.
* @return a {@link java.util.List<Person>}
*/
@jakarta.annotation.Nullable
public java.util.List<Person> getPeople() {
return this.backingStore.get("people");
}
/**
* Gets the permissionGrants property value. List all resource-specific permission grants of a user.
* @return a {@link java.util.List<ResourceSpecificPermissionGrant>}
*/
@jakarta.annotation.Nullable
public java.util.List<ResourceSpecificPermissionGrant> getPermissionGrants() {
return this.backingStore.get("permissionGrants");
}
/**
* Gets the photo property value. The user's profile photo. Read-only.
* @return a {@link ProfilePhoto}
*/
@jakarta.annotation.Nullable
public ProfilePhoto getPhoto() {
return this.backingStore.get("photo");
}
/**
* Gets the photos property value. The collection of the user's profile photos in different sizes. Read-only.
* @return a {@link java.util.List<ProfilePhoto>}
*/
@jakarta.annotation.Nullable
public java.util.List<ProfilePhoto> getPhotos() {
return this.backingStore.get("photos");
}
/**
* Gets the planner property value. Entry-point to the Planner resource that might exist for a user. Read-only.
* @return a {@link PlannerUser}
*/
@jakarta.annotation.Nullable
public PlannerUser getPlanner() {
return this.backingStore.get("planner");
}
/**
* Gets the postalCode property value. The postal code for the user's postal address. The postal code is specific to the user's country or region. In the United States of America, this attribute contains the ZIP code. Maximum length is 40 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPostalCode() {
return this.backingStore.get("postalCode");
}
/**
* Gets the preferredDataLocation property value. The preferred data location for the user. For more information, see OneDrive Online Multi-Geo.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPreferredDataLocation() {
return this.backingStore.get("preferredDataLocation");
}
/**
* Gets the preferredLanguage property value. The preferred language for the user. The preferred language format is based on RFC 4646. The name is a combination of an ISO 639 two-letter lowercase culture code associated with the language, and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values)
* @return a {@link String}
*/
@jakarta.annotation.Nullable