diff --git a/src/Users.Actions/v1.0/examples/Reset-MgUserAuthenticationMethodPassword.md b/src/Users.Actions/v1.0/examples/Reset-MgUserAuthenticationMethodPassword.md index 87593e4c07..1479e28dd9 100644 --- a/src/Users.Actions/v1.0/examples/Reset-MgUserAuthenticationMethodPassword.md +++ b/src/Users.Actions/v1.0/examples/Reset-MgUserAuthenticationMethodPassword.md @@ -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 @@ -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.