Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
How to configure user passwords to never expire in Office 365
Article ID: 2666768 - View products that this article applies to.
Not sure what release of Office 365 you're using? Go to the following Microsoft website:
Am I using Office 365 after the service upgrade?
This article describes how to set user passwords never to expire in Microsoft Office 365. You can use the Windows Azure Active Directory Module for Windows PowerShell to set user passwords to never expire.
Note This procedure does not apply to users who are enabled for single sign-on (SSO). This is because passwords for SSO-enabled users are managed in the on-premises environment. If you try to perform this procedure for an SSO-enabled user, you receive output that resembles the following in Windows PowerShell:
Set-MsolUser : Unable to update parameter. Parameter name: PasswordPolicies.
At line:1 char:13
+ Set-MsolUser <<<< -UserPrincipalName firstname.lastname@example.org
+ CategoryInfo : OperationStopped: (:) [Set-MsolUser], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.PropertyNotSettableException, Microsoft.Online.Administration.Automation.SetUser
Note Only passwords for user accounts that are not synchronized through directory synchronization can be configured to never expire.
Check whether a password is set to never expireTo check whether a password is set to never expire, determine whether the PasswordNeverExpires setting is enabled or disabled for a user. To do this, follow these steps:
Configure a password to never expireTo set a user's password to never expire, enable the PasswordNeverExpires setting. To do this, follow these steps:
Configure a password to expireTo set a user's password to expire, disable the PasswordNeverExpires setting. To do this, follow these steps:
For more information about how to manage Windows Azure AD by using Windows PowerShell, go to the following Microsoft website:
Manage Windows Azure Active Directory by using Windows PowerShell
Still need help? Go to the Office 365 Community
Article ID: 2666768 - Last Review: May 17, 2013 - Revision: 17.0