From 86618a172401d36657a7962f93853b5f5884469d Mon Sep 17 00:00:00 2001 From: Tariq Jaber <64084421+tajaber@users.noreply.github.com> Date: Wed, 7 Aug 2024 08:15:27 +0300 Subject: [PATCH] Update Reset-MgUserAuthenticationMethodPassword.md Included details about the ID of the required Authentication Method. --- .../examples/Reset-MgUserAuthenticationMethodPassword.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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.