File tree Expand file tree Collapse file tree 2 files changed +26
-23
lines changed
Users.Actions/v1.0/examples Expand file tree Collapse file tree 2 files changed +26
-23
lines changed Original file line number Diff line number Diff line change @@ -10,26 +10,26 @@ $params = @{
1010 filterStartDateTime = [System.DateTime]::Parse("String (timestamp)")
1111 filterEndDateTime = [System.DateTime]::Parse("String (timestamp)")
1212 recordTypeFilters = @(
13- "String"
14- )
15- keywordFilter = "String"
16- serviceFilter = "String"
17- operationFilters = @(
18- "String"
19- )
20- userPrincipalNameFilters = @(
21- "String"
22- )
23- ipAddressFilters = @(
24- "String"
25- )
26- objectIdFilters = @(
27- "String"
28- )
29- administrativeUnitIdFilters = @(
30- "String"
31- )
32- status = "String"
13+ "String"
14+ )
15+ keywordFilter = "String"
16+ serviceFilter = "String"
17+ operationFilters = @(
18+ "String"
19+ )
20+ userPrincipalNameFilters = @(
21+ "String"
22+ )
23+ ipAddressFilters = @(
24+ "String"
25+ )
26+ objectIdFilters = @(
27+ "String"
28+ )
29+ administrativeUnitIdFilters = @(
30+ "String"
31+ )
32+ status = "String"
3333}
3434
3535New-MgBetaSecurityAuditLogQuery -BodyParameter $params
Original file line number Diff line number Diff line change @@ -8,10 +8,12 @@ $params = @{
88 newPassword = "Cuyo5459"
99}
1010
11+ $authenticationMethodId = "28c10230-6103-485e-b985-444c60001490"
12+
1113Reset-MgUserAuthenticationMethodPassword -UserId $userId -AuthenticationMethodId $authenticationMethodId -BodyParameter $params
1214
1315```
14- This example will user- submitted password
16+ This example will set the submitted password.
1517
1618### Example 2: System-generated password
1719
@@ -22,8 +24,9 @@ Import-Module Microsoft.Graph.Users.Actions
2224$params = @{
2325}
2426
27+ $authenticationMethodId = "28c10230-6103-485e-b985-444c60001490"
28+
2529Reset-MgUserAuthenticationMethodPassword -UserId $userId -AuthenticationMethodId $authenticationMethodId -BodyParameter $params
2630
2731```
28- This example will system-generated password
29-
32+ This example will generate a password for a cloud only user.
You can’t perform that action at this time.
0 commit comments