Account Security Problems

How to Exclude a User from the Microsoft 365 Password Expiration Policy

Jason MillerJason Miller Nov 4, 2026 869 views

Question details

The user needs to configure a specific Microsoft 365 user account so that its password never expires, bypassing the organization's global password expiration policy.

How to Exclude a User from the Microsoft 365 Password Expiration Policy
Product
Microsoft 365
Device & OS
not provided
Scenario
An administrator wants to prevent a specific user's password from expiring despite global security policies.
Observed behavior
The administrator is seeking the correct method and necessary permissions to apply a non-expiring password policy to an individual account.
Before you start

Ensure you have Microsoft 365 Global Administrator or User Administrator privileges, and verify that the necessary PowerShell modules for Microsoft 365 are installed on your system.

Solution 1Recommended

Set a Microsoft 365 User Password to Never Expire via PowerShell

Use Microsoft 365 PowerShell commands to override the global policy and disable password expiration for a specific individual account.

Because this action requires administrative oversight, it is best executed through PowerShell. You must be connected to your Microsoft 365 tenant using the Azure AD or Microsoft Graph PowerShell module.

1
Open PowerShell as Administrator

Right-click the Start menu and select Windows PowerShell (Admin) or Windows Terminal (Admin) to launch the command line with elevated privileges.

2
Connect to Microsoft 365

Type the connection command for your installed module, such as Connect-AzureAD or Connect-MgGraph, and sign in with your Microsoft 365 administrator credentials.

3
Execute the Password Policy Command

Run the command to disable password expiration for the specific user. For example, using Azure AD: Set-AzureADUser -ObjectId user@yourdomain.com -PasswordPolicies DisablePasswordExpiration.

4
Verify the Changes

Confirm the update was successful by checking the user's properties with the command: Get-AzureADUser -ObjectId user@yourdomain.com | Select-Object PasswordPolicies.

Set a Microsoft 365 User Password to Never Expire via PowerShell
Administrator Permissions Required: These PowerShell commands will fail if your account does not have sufficient administrator privileges. If you are a standard user, you must contact your organization's IT department to request this change.
Free Microsoft Office alternative

Try WPS Office: A Free, Lightweight Alternative to Microsoft Office

Managing complex Microsoft 365 enterprise policies and subscriptions can be burdensome. If you simply need a powerful, easy-to-use office suite for your daily document tasks without the hassle of administrative overhead, WPS Office is an excellent free alternative.

  1. 1. Download WPS Office: Visit the official WPS Office website and click the free download button.
  2. 2. Install the Software: Run the downloaded installation file and follow the brief on-screen instructions.
  3. 3. Start Creating: Open WPS Office to instantly start editing your Word, Excel, and PowerPoint documents with no complex setup required.
Completely free to download and use for essential office tasksHighly compatible with Microsoft Office formats including Word, Excel, and PowerPointLightweight application that runs smoothly without extensive system requirementsFamiliar user interface makes transitioning seamless and straightforward
microsoft office alternative - wps office

Frequently Asked Questions

Can I set a password to never expire using the Microsoft 365 admin center interface?

Yes, in some configurations you can navigate to Users > Active users in the Microsoft 365 admin center, select the user, and look for password settings. However, PowerShell remains the most reliable and direct method for modifying the PasswordPolicies attribute specifically.

Does disabling password expiration increase security risks?

Yes, setting a password to never expire can increase the risk of unauthorized access if the password is ever compromised. It is highly recommended to enable Multi-Factor Authentication (MFA) for any account that has an unending password policy.

How do I check if my organization has a global password expiration policy enabled?

Administrators can check the global password policy by navigating to the Microsoft 365 admin center, going to Settings > Org settings > Security & privacy, and reviewing the Password expiration policy section.