Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Set-EntraSignedInUserPassword

Updates the password for the signed-in user.

Syntax

Default (Default)

Set-EntraSignedInUserPassword

 -NewPassword <SecureString>
 -CurrentPassword <SecureString>
 [<CommonParameters>]

Description

The Set-EntraSignedInUserPassword cmdlet with the alias Update-EntraSignedInUserPassword updates the password for the signed-in user in Microsoft Entra ID.

Enable users to update their own passwords. Any user can change their password without requiring administrator privileges.

Examples

Example 1: Update a password

Connect-Entra -Scopes 'Directory.AccessAsUser.All'
$currentPassword = ConvertTo-SecureString '<strong-password>' -AsPlainText -Force
$newPassword = ConvertTo-SecureString '<strong-password>' -AsPlainText -Force
Set-EntraSignedInUserPassword -CurrentPassword $currentPassword -NewPassword $newPassword

This example shows how to update the password for the signed-in user.

  • -CurrentPassword parameter specifies the current password of the signed-in user.
  • -NewPassword parameter specifies the new password for the signed-in user.

Parameters

-CurrentPassword

Specifies the current password of the signed-in user.

Parameter properties

Type:SecureString
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-NewPassword

Specifies the new password for the signed-in user.

Parameter properties

Type:SecureString
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Notes


Feedback

Was this page helpful?