@@ -5,7 +5,7 @@ services: active-directory
5
5
author : rolyon
6
6
manager : amycolannino
7
7
ms.author : rolyon
8
- ms.date : 09/08 /2023
8
+ ms.date : 10/01 /2023
9
9
ms.topic : how-to
10
10
ms.service : active-directory
11
11
ms.subservice : enterprise-users
@@ -134,10 +134,9 @@ The following example assigns a custom security attribute with a string value to
134
134
135
135
# [ PowerShell] ( #tab/ms-powershell )
136
136
137
- [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser?view=graph-powershell-beta&preserve-view=true )
137
+ [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser )
138
138
139
139
``` powershell
140
- Select-MgProfile -Name "beta"
141
140
$customSecurityAttributes = @{
142
141
"Engineering" = @{
143
142
"@odata.type" = "#Microsoft.DirectoryServices.CustomSecurityAttributeValue"
@@ -149,10 +148,10 @@ Update-MgUser -UserId $userId -CustomSecurityAttributes $customSecurityAttribute
149
148
150
149
# [ Microsoft Graph] ( #tab/ms-graph )
151
150
152
- [ Update user] ( /graph/api/user-update?view=graph-rest-beta&preserve-view=true )
151
+ [ Update user] ( /graph/api/user-update )
153
152
154
153
``` http
155
- PATCH https://graph.microsoft.com/beta /users/{id}
154
+ PATCH https://graph.microsoft.com/v1.0 /users/{id}
156
155
{
157
156
"customSecurityAttributes":
158
157
{
@@ -182,10 +181,9 @@ The following example assigns a custom security attribute with a multi-string va
182
181
183
182
# [ PowerShell] ( #tab/ms-powershell )
184
183
185
- [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser?view=graph-powershell-beta&preserve-view=true )
184
+ [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser )
186
185
187
186
``` powershell
188
- Select-MgProfile -Name "beta"
189
187
$customSecurityAttributes = @{
190
188
"Engineering" = @{
191
189
"@odata.type" = "#Microsoft.DirectoryServices.CustomSecurityAttributeValue"
@@ -198,10 +196,10 @@ Update-MgUser -UserId $userId -CustomSecurityAttributes $customSecurityAttribute
198
196
199
197
# [ Microsoft Graph] ( #tab/ms-graph )
200
198
201
- [ Update user] ( /graph/api/user-update?view=graph-rest-beta&preserve-view=true )
199
+ [ Update user] ( /graph/api/user-update )
202
200
203
201
``` http
204
- PATCH https://graph.microsoft.com/beta /users/{id}
202
+ PATCH https://graph.microsoft.com/v1.0 /users/{id}
205
203
{
206
204
"customSecurityAttributes":
207
205
{
@@ -243,10 +241,9 @@ The following example assigns a custom security attribute with an integer value
243
241
244
242
# [ PowerShell] ( #tab/ms-powershell )
245
243
246
- [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser?view=graph-powershell-beta&preserve-view=true )
244
+ [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser )
247
245
248
246
``` powershell
249
- Select-MgProfile -Name "beta"
250
247
$customSecurityAttributes = @{
251
248
"Engineering" = @{
252
249
"@odata.type" = "#Microsoft.DirectoryServices.CustomSecurityAttributeValue"
@@ -259,10 +256,10 @@ Update-MgUser -UserId $userId -CustomSecurityAttributes $customSecurityAttribute
259
256
260
257
# [ Microsoft Graph] ( #tab/ms-graph )
261
258
262
- [ Update user] ( /graph/api/user-update?view=graph-rest-beta&preserve-view=true )
259
+ [ Update user] ( /graph/api/user-update )
263
260
264
261
``` http
265
- PATCH https://graph.microsoft.com/beta /users/{id}
262
+ PATCH https://graph.microsoft.com/v1.0 /users/{id}
266
263
{
267
264
"customSecurityAttributes":
268
265
{
@@ -293,10 +290,9 @@ The following example assigns a custom security attribute with a multi-integer v
293
290
294
291
# [ PowerShell] ( #tab/ms-powershell )
295
292
296
- [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser?view=graph-powershell-beta&preserve-view=true )
293
+ [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser )
297
294
298
295
``` powershell
299
- Select-MgProfile -Name "beta"
300
296
$customSecurityAttributes = @{
301
297
"Engineering" = @{
302
298
"@odata.type" = "#Microsoft.DirectoryServices.CustomSecurityAttributeValue"
@@ -309,10 +305,10 @@ Update-MgUser -UserId $userId -CustomSecurityAttributes $customSecurityAttribute
309
305
310
306
# [ Microsoft Graph] ( #tab/ms-graph )
311
307
312
- [ Update user] ( /graph/api/user-update?view=graph-rest-beta&preserve-view=true )
308
+ [ Update user] ( /graph/api/user-update )
313
309
314
310
``` http
315
- PATCH https://graph.microsoft.com/beta /users/{id}
311
+ PATCH https://graph.microsoft.com/v1.0 /users/{id}
316
312
{
317
313
"customSecurityAttributes":
318
314
{
@@ -343,10 +339,9 @@ The following example assigns a custom security attribute with a Boolean value t
343
339
344
340
# [ PowerShell] ( #tab/ms-powershell )
345
341
346
- [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser?view=graph-powershell-beta&preserve-view=true )
342
+ [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser )
347
343
348
344
``` powershell
349
- Select-MgProfile -Name "beta"
350
345
$customSecurityAttributes = @{
351
346
"Engineering" = @{
352
347
"@odata.type" = "#Microsoft.DirectoryServices.CustomSecurityAttributeValue"
@@ -358,10 +353,10 @@ Update-MgUser -UserId $userId -CustomSecurityAttributes $customSecurityAttribute
358
353
359
354
# [ Microsoft Graph] ( #tab/ms-graph )
360
355
361
- [ Update user] ( /graph/api/user-update?view=graph-rest-beta&preserve-view=true )
356
+ [ Update user] ( /graph/api/user-update )
362
357
363
358
``` http
364
- PATCH https://graph.microsoft.com/beta /users/{id}
359
+ PATCH https://graph.microsoft.com/v1.0 /users/{id}
365
360
{
366
361
"customSecurityAttributes":
367
362
{
@@ -391,10 +386,9 @@ The following example updates a custom security attribute assignment with an int
391
386
392
387
# [ PowerShell] ( #tab/ms-powershell )
393
388
394
- [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser?view=graph-powershell-beta&preserve-view=true )
389
+ [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser )
395
390
396
391
``` powershell
397
- Select-MgProfile -Name "beta"
398
392
$customSecurityAttributes = @{
399
393
"Engineering" = @{
400
394
"@odata.type" = "#Microsoft.DirectoryServices.CustomSecurityAttributeValue"
@@ -407,10 +401,10 @@ Update-MgUser -UserId $userId -CustomSecurityAttributes $customSecurityAttribute
407
401
408
402
# [ Microsoft Graph] ( #tab/ms-graph )
409
403
410
- [ Update user] ( /graph/api/user-update?view=graph-rest-beta&preserve-view=true )
404
+ [ Update user] ( /graph/api/user-update )
411
405
412
406
``` http
413
- PATCH https://graph.microsoft.com/beta /users/{id}
407
+ PATCH https://graph.microsoft.com/v1.0 /users/{id}
414
408
{
415
409
"customSecurityAttributes":
416
410
{
@@ -441,10 +435,9 @@ The following example updates a custom security attribute assignment with a Bool
441
435
442
436
# [ PowerShell] ( #tab/ms-powershell )
443
437
444
- [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser?view=graph-powershell-beta&preserve-view=true )
438
+ [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser )
445
439
446
440
``` powershell
447
- Select-MgProfile -Name "beta"
448
441
$customSecurityAttributes = @{
449
442
"Engineering" = @{
450
443
"@odata.type" = "#Microsoft.DirectoryServices.CustomSecurityAttributeValue"
@@ -456,10 +449,10 @@ Update-MgUser -UserId $userId -CustomSecurityAttributes $customSecurityAttribute
456
449
457
450
# [ Microsoft Graph] ( #tab/ms-graph )
458
451
459
- [ Update user] ( /graph/api/user-update?view=graph-rest-beta&preserve-view=true )
452
+ [ Update user] ( /graph/api/user-update )
460
453
461
454
``` http
462
- PATCH https://graph.microsoft.com/beta /users/{id}
455
+ PATCH https://graph.microsoft.com/v1.0 /users/{id}
463
456
{
464
457
"customSecurityAttributes":
465
458
{
@@ -489,10 +482,9 @@ The following example updates a custom security attribute assignment with a mult
489
482
490
483
# [ PowerShell] ( #tab/ms-powershell )
491
484
492
- [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser?view=graph-powershell-beta&preserve-view=true )
485
+ [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser )
493
486
494
487
``` powershell
495
- Select-MgProfile -Name "beta"
496
488
$customSecurityAttributes = @{
497
489
"Engineering" = @{
498
490
"@odata.type" = "#Microsoft.DirectoryServices.CustomSecurityAttributeValue"
@@ -505,10 +497,10 @@ Update-MgUser -UserId $userId -CustomSecurityAttributes $customSecurityAttribute
505
497
506
498
# [ Microsoft Graph] ( #tab/ms-graph )
507
499
508
- [ Update user] ( /graph/api/user-update?view=graph-rest-beta&preserve-view=true )
500
+ [ Update user] ( /graph/api/user-update )
509
501
510
502
``` http
511
- PATCH https://graph.microsoft.com/beta /users/{id}
503
+ PATCH https://graph.microsoft.com/v1.0 /users/{id}
512
504
{
513
505
"customSecurityAttributes":
514
506
{
@@ -545,10 +537,9 @@ The following example gets the custom security attribute assignments for a user.
545
537
546
538
# [ PowerShell] ( #tab/ms-powershell )
547
539
548
- [ Get-MgUser] ( /powershell/module/microsoft.graph.users/get-mguser?view=graph-powershell-beta&preserve-view=true )
540
+ [ Get-MgUser] ( /powershell/module/microsoft.graph.users/get-mguser )
549
541
550
542
``` powershell
551
- Select-MgProfile -Name "beta"
552
543
$userAttributes = Get-MgUser -UserId $userId -Property "customSecurityAttributes"
553
544
$userAttributes.CustomSecurityAttributes.AdditionalProperties | Format-List
554
545
$userAttributes.CustomSecurityAttributes.AdditionalProperties.Engineering
@@ -587,15 +578,15 @@ If there are no custom security attributes assigned to the user or if the callin
587
578
588
579
# [ Microsoft Graph] ( #tab/ms-graph )
589
580
590
- [ Get user] ( /graph/api/user-get?view=graph-rest-beta&preserve-view=true )
581
+ [ Get user] ( /graph/api/user-get )
591
582
592
583
``` http
593
- GET https://graph.microsoft.com/beta /users/{id}?$select=customSecurityAttributes
584
+ GET https://graph.microsoft.com/v1.0 /users/{id}?$select=customSecurityAttributes
594
585
```
595
586
596
587
``` http
597
588
{
598
- "@odata.context": "https://graph.microsoft.com/beta /$metadata#users(customSecurityAttributes)/$entity",
589
+ "@odata.context": "https://graph.microsoft.com/v1.0 /$metadata#users(customSecurityAttributes)/$entity",
599
590
"customSecurityAttributes": {
600
591
"Engineering": {
601
592
"@odata.type": "#microsoft.graph.customSecurityAttributeValue",
@@ -650,10 +641,9 @@ The following example lists all users with a custom security attribute assignmen
650
641
651
642
# [ PowerShell] ( #tab/ms-powershell )
652
643
653
- [ Get-MgUser] ( /powershell/module/microsoft.graph.users/get-mguser?view=graph-powershell-beta&preserve-view=true )
644
+ [ Get-MgUser] ( /powershell/module/microsoft.graph.users/get-mguser )
654
645
655
646
``` powershell
656
- Select-MgProfile -Name "beta"
657
647
$userAttributes = Get-MgUser -CountVariable CountVar -Property "id,displayName,customSecurityAttributes" -Filter "customSecurityAttributes/Marketing/AppCountry eq 'Canada'" -ConsistencyLevel eventual
658
648
$userAttributes | select Id,DisplayName,CustomSecurityAttributes
659
649
$userAttributes.CustomSecurityAttributes.AdditionalProperties | Format-List
@@ -679,16 +669,16 @@ Value : {[@odata.type, #microsoft.graph.customSecurityAttributeValue], [AppCount
679
669
680
670
# [ Microsoft Graph] ( #tab/ms-graph )
681
671
682
- [ List users] ( /graph/api/user-list?view=graph-rest-beta&preserve-view=true )
672
+ [ List users] ( /graph/api/user-list )
683
673
684
674
``` http
685
- GET https://graph.microsoft.com/beta /users?$count=true&$select=id,displayName,customSecurityAttributes&$filter=customSecurityAttributes/Marketing/AppCountry eq 'Canada'
675
+ GET https://graph.microsoft.com/v1.0 /users?$count=true&$select=id,displayName,customSecurityAttributes&$filter=customSecurityAttributes/Marketing/AppCountry eq 'Canada'
686
676
ConsistencyLevel: eventual
687
677
```
688
678
689
679
``` http
690
680
{
691
- "@odata.context": "https://graph.microsoft.com/beta /$metadata#users(id,displayName,customSecurityAttributes)",
681
+ "@odata.context": "https://graph.microsoft.com/v1.0 /$metadata#users(id,displayName,customSecurityAttributes)",
692
682
"@odata.count": 2,
693
683
"value": [
694
684
{
@@ -748,10 +738,9 @@ The following example lists all users with a custom security attribute assignmen
748
738
749
739
# [ PowerShell] ( #tab/ms-powershell )
750
740
751
- [ Get-MgUser] ( /powershell/module/microsoft.graph.users/get-mguser?view=graph-powershell-beta&preserve-view=true )
741
+ [ Get-MgUser] ( /powershell/module/microsoft.graph.users/get-mguser )
752
742
753
743
``` powershell
754
- Select-MgProfile -Name "beta"
755
744
$userAttributes = Get-MgUser -CountVariable CountVar -Property "id,displayName,customSecurityAttributes" -Filter "startsWith(customSecurityAttributes/Marketing/EmployeeId,'GS')" -ConsistencyLevel eventual
756
745
$userAttributes | select Id,DisplayName,CustomSecurityAttributes
757
746
$userAttributes.CustomSecurityAttributes.AdditionalProperties | Format-List
@@ -781,16 +770,16 @@ Value : {[@odata.type, #microsoft.graph.customSecurityAttributeValue], [Employee
781
770
782
771
# [ Microsoft Graph] ( #tab/ms-graph )
783
772
784
- [ List users] ( /graph/api/user-list?view=graph-rest-beta&preserve-view=true )
773
+ [ List users] ( /graph/api/user-list )
785
774
786
775
``` http
787
- GET https://graph.microsoft.com/beta /users?$count=true&$select=id,displayName,customSecurityAttributes&$filter=startsWith(customSecurityAttributes/Marketing/EmployeeId,'GS')
776
+ GET https://graph.microsoft.com/v1.0 /users?$count=true&$select=id,displayName,customSecurityAttributes&$filter=startsWith(customSecurityAttributes/Marketing/EmployeeId,'GS')
788
777
ConsistencyLevel: eventual
789
778
```
790
779
791
780
``` http
792
781
{
793
- "@odata.context": "https://graph.microsoft.com/beta /$metadata#users(id,displayName,customSecurityAttributes)",
782
+ "@odata.context": "https://graph.microsoft.com/v1.0 /$metadata#users(id,displayName,customSecurityAttributes)",
794
783
"@odata.count": 3,
795
784
"value": [
796
785
{
@@ -864,10 +853,9 @@ The following example lists all users with a custom security attribute assignmen
864
853
865
854
# [ PowerShell] ( #tab/ms-powershell )
866
855
867
- [ Get-MgUser] ( /powershell/module/microsoft.graph.users/get-mguser?view=graph-powershell-beta&preserve-view=true )
856
+ [ Get-MgUser] ( /powershell/module/microsoft.graph.users/get-mguser )
868
857
869
858
``` powershell
870
- Select-MgProfile -Name "beta"
871
859
$userAttributes = Get-MgUser -CountVariable CountVar -Property "id,displayName,customSecurityAttributes" -Filter "customSecurityAttributes/Marketing/AppCountry ne 'Canada'" -ConsistencyLevel eventual
872
860
$userAttributes | select Id,DisplayName,CustomSecurityAttributes
873
861
```
@@ -884,16 +872,16 @@ d5a1c025-2d79-4ad3-9217-91ac3a4ed8b8 Joe Microsoft.Graph.Po
884
872
885
873
# [ Microsoft Graph] ( #tab/ms-graph )
886
874
887
- [ List users] ( /graph/api/user-list?view=graph-rest-beta&preserve-view=true )
875
+ [ List users] ( /graph/api/user-list )
888
876
889
877
``` http
890
- GET https://graph.microsoft.com/beta /users?$count=true&$select=id,displayName,customSecurityAttributes&$filter=customSecurityAttributes/Marketing/AppCountry ne 'Canada'
878
+ GET https://graph.microsoft.com/v1.0 /users?$count=true&$select=id,displayName,customSecurityAttributes&$filter=customSecurityAttributes/Marketing/AppCountry ne 'Canada'
891
879
ConsistencyLevel: eventual
892
880
```
893
881
894
882
``` http
895
883
{
896
- "@odata.context": "https://graph.microsoft.com/beta /$metadata#users(id,displayName,customSecurityAttributes)",
884
+ "@odata.context": "https://graph.microsoft.com/v1.0 /$metadata#users(id,displayName,customSecurityAttributes)",
897
885
"@odata.count": 47,
898
886
"value": [
899
887
{
@@ -995,15 +983,15 @@ $params = @{
995
983
}
996
984
}
997
985
}
998
- Invoke-MgGraphRequest -Method PATCH -Uri "https://graph.microsoft.com/beta /users/$userId" -Body $params
986
+ Invoke-MgGraphRequest -Method PATCH -Uri "https://graph.microsoft.com/v1.0 /users/$userId" -Body $params
999
987
```
1000
988
1001
989
# [ Microsoft Graph] ( #tab/ms-graph )
1002
990
1003
- [ Update user] ( /graph/api/user-update?view=graph-rest-beta&preserve-view=true )
991
+ [ Update user] ( /graph/api/user-update )
1004
992
1005
993
``` http
1006
- PATCH https://graph.microsoft.com/beta /users/{id}
994
+ PATCH https://graph.microsoft.com/v1.0 /users/{id}
1007
995
{
1008
996
"customSecurityAttributes":
1009
997
{
@@ -1032,10 +1020,9 @@ The following example removes a multi-valued custom security attribute assignmen
1032
1020
1033
1021
# [ PowerShell] ( #tab/ms-powershell )
1034
1022
1035
- [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser?view=graph-powershell-beta&preserve-view=true )
1023
+ [ Update-MgUser] ( /powershell/module/microsoft.graph.users/update-mguser )
1036
1024
1037
1025
``` powershell
1038
- Select-MgProfile -Name "beta"
1039
1026
$customSecurityAttributes = @{
1040
1027
"Engineering" = @{
1041
1028
"@odata.type" = "#Microsoft.DirectoryServices.CustomSecurityAttributeValue"
@@ -1047,10 +1034,10 @@ Update-MgUser -UserId $userId -CustomSecurityAttributes $customSecurityAttribute
1047
1034
1048
1035
# [ Microsoft Graph] ( #tab/ms-graph )
1049
1036
1050
- [ Update user] ( /graph/api/user-update?view=graph-rest-beta&preserve-view=true )
1037
+ [ Update user] ( /graph/api/user-update )
1051
1038
1052
1039
``` http
1053
- PATCH https://graph.microsoft.com/beta /users/{id}
1040
+ PATCH https://graph.microsoft.com/v1.0 /users/{id}
1054
1041
{
1055
1042
"customSecurityAttributes":
1056
1043
{
0 commit comments