Skip to content

Commit 86618a1

Browse files
authored
Update Reset-MgUserAuthenticationMethodPassword.md
Included details about the ID of the required Authentication Method.
1 parent b357820 commit 86618a1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Users.Actions/v1.0/examples/Reset-MgUserAuthenticationMethodPassword.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ $params = @{
88
newPassword = "Cuyo5459"
99
}
1010
11+
$authenticationMethodId = "28c10230-6103-485e-b985-444c60001490"
12+
1113
Reset-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+
2529
Reset-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.

0 commit comments

Comments
 (0)