Office 365 password policy tenant vs. individual user's password policy

Yannick Schlecht 21 Reputation points
2022-08-31T21:05:01.913+00:00

Hi all

We have set the org tenant level password policy to "passwords never expire".
(Microsoft 365 admin center, go to Security & privacy tab, select Password expiration policy, Set passwords to never expire, see https://learn.microsoft.com/en-us/microsoft-365/admin/manage/set-password-expiration-policy?view=o365-worldwide#set-password-expiration-policy)

In the last days a couple of users were forced to change their password although we set org tenant level password policy to "passwords never expire" (the policy was set over half a year ago and didn't change).

Any ideas why? I expect, that no users have to change their passwords.

I checked the org tenant password policy also with PowerShell:

Get-MsolPasswordPolicy -DomainName <domain> | fl  

The result is:
ExtensionData : System.Runtime.Serialization.ExtensionDataObject
NotificationDays : 14
ValidityPeriod : 2147483647

If I check the Microsoft 365 user details with the following PowerShell command:

Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires  

The result is:

  • The attribute "PasswordNeverExpires" is "False" or empty

Do the org settings not take effect?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points
    2022-08-31T21:43:23.563+00:00

    Are you using risk based conditional access policies that force a password change if the risk is met?

    Example:
    https://learn.microsoft.com/en-us/azure/active-directory/conditional-access/howto-conditional-access-policy-risk-user

    0 comments No comments

  2. Yannick Schlecht 21 Reputation points
    2022-09-01T07:10:01.103+00:00

    No, we haven't configured any conditional access policies at all. The users are cloud only (no on-prem infrastructure).

    0 comments No comments

  3. Vasil Michev 119.9K Reputation points MVP Volunteer Moderator
    2022-09-01T07:58:49.173+00:00

    Afaik the (domain-based) password policy setting does not apply retroactively, i.e. it will only take effect once the user has changed their password (which in turn is subject to the previous expiration window).


  4. Yannick Schlecht 21 Reputation points
    2022-09-21T17:56:04.923+00:00

    I received answer from Microsoft - it was a problem with the service, therefore this behavior occurred. All the configurations are correct. The "Password Never Expires" Policy is set to "Yes" on tenant level.

    Answer from Microsoft:

    I examined our logs and found that there was a service incident between 8/26 and 8/31 where users were prompted to enter their password multiple times. This issue occurred after a small update, and my colleagues fixed it soon after. There should be no more problems. We sincerely apologize for the inconvenience. You can also forward this email to your customers as a confirmation.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.