Skip to content

Commit

Permalink
Merge pull request #2892 from tajaber/patch-1
Browse files Browse the repository at this point in the history
Update Reset-MgUserAuthenticationMethodPassword.md
  • Loading branch information
timayabi2020 authored Aug 7, 2024
2 parents b357820 + 86618a1 commit 6f24927
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ $params = @{
newPassword = "Cuyo5459"
}
$authenticationMethodId = "28c10230-6103-485e-b985-444c60001490"
Reset-MgUserAuthenticationMethodPassword -UserId $userId -AuthenticationMethodId $authenticationMethodId -BodyParameter $params
```
This example will user-submitted password
This example will set the submitted password.

### Example 2: System-generated password

Expand All @@ -22,8 +24,9 @@ Import-Module Microsoft.Graph.Users.Actions
$params = @{
}
$authenticationMethodId = "28c10230-6103-485e-b985-444c60001490"
Reset-MgUserAuthenticationMethodPassword -UserId $userId -AuthenticationMethodId $authenticationMethodId -BodyParameter $params
```
This example will system-generated password

This example will generate a password for a cloud only user.

0 comments on commit 6f24927

Please sign in to comment.