You can set the password expiration policy of all users to never expire in Office 365 with the help of GUI or web interface. There is no way to set the password policy to never expire for a single user using web interface. You have to use PowerShell.
In this tutorial, I'll show you to set the password expiration policy to never expire in Office 365 with the help of PowerShell.
Download and install the following modules.
- Microsoft Online Service Sign-in Assistant for IT Professionals RTW
- Windows Azure Active Directory Module for Windows PowerShell (64-bit vers
Setting Password Policy to Never Expire for All Users
$cred = Get-Credential
Connect-MSOLService -Credential $cred
Get-MSOLUser | Set-MSOLUser –PasswordNeverExpires $true
Setting Password Policy to Never Expire for a Single User
Execute the following command to set the password expiration policy to never expire for a single user, just replace the alias parameter with the users' alias.
Set-MsolUser -UserPrincipalName alias -PasswordNeverExpires $true