Skip to content

Update Reset-MgUserAuthenticationMethodPassword.md #575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ This reset is a long-running operation and returns a Location header with a link
**Permissions**
[!INCLUDE [permissions-table](~/../graphref/api-reference/v1.0/includes/permissions/authenticationmethod-resetpassword-permissions.md)]

> [!NOTE]
> When executing the PowerShell command Reset-MgUserAuthenticationMethodPassword, it is required to include the -AuthenticationMethodId parameter with ID 28c10230-6103-485e-b985-444c60001490. This ID represents the password authentication method.

## EXAMPLES
### Example 1: User-submitted password

Expand All @@ -76,7 +79,7 @@ $params = @{
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 @@ -87,11 +90,12 @@ 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.

## PARAMETERS

Expand Down Expand Up @@ -281,11 +285,11 @@ To create the parameters described below, construct a hash table containing the
For information on hash tables, run Get-Help about_Hash_Tables.

BODYPARAMETER `<IPaths1KjcdupUsersUserIdAuthenticationMethodsAuthenticationmethodIdMicrosoftGraphResetpasswordPostRequestbodyContentApplicationJsonSchema>`: .
- `[(Any) <Object>]`: This indicates any property can be added to this object.
- `[(Any) <Object>]`: This indicates any property can be added to this object.
- `[NewPassword <String>]`:

INPUTOBJECT `<IUsersActionsIdentity>`: Identity Parameter
- `[AuthenticationMethodId <String>]`: The unique identifier of authenticationMethod
- `[AuthenticationMethodId <String>]`: The unique identifier of authenticationMethod
- `[CalendarId <String>]`: The unique identifier of calendar
- `[ChatId <String>]`: The unique identifier of chat
- `[ChatMessageId <String>]`: The unique identifier of chatMessage
Expand Down