How to set single Azure AD user’s password to never expire

You must be an global admin or password administrator to perform these steps. Run these command in PowerShell

Connect-AzureAD

Check if the target user’s password is set to “never expired”

Get-AzureADUser -ObjectId [email protected] | Select-Object UserprincipalName,@{
    N="PasswordNeverExpires";E={$_.PasswordPolicies -contains "DisablePasswordExpiration"}
}

Set the target user’s password to “Never Expire”

Set-AzureADUser -ObjectId <user ID> -PasswordPolicies DisablePasswordExpiration

Full article in https://docs.microsoft.com/en-us/microsoft-365/admin/add-users/set-password-to-never-expire?view=o365-worldwide

Back To Top