Skip to main content
Question

Unwanted Force password reset on Mac

  • January 21, 2026
  • 5 replies
  • 88 views

Forum|alt.badge.img+3

I have been having  this issue where some of our Mac computers are being force to change their password approximately every 90 days. First thing comes in mind is if we have a Jamf policy for password expiration. As per checking  we don’t have any policy enforced for a password expiration. I’ve been researching if what may be the cause, most says that it’s due to an MDM.

Anyone having this kind of issue? how did you resolved it. We don’t want to set an expiration date for our Mac passwords.

5 replies

h1431532403240
Forum|alt.badge.img+6

Run this on an affected Mac to see if a local password policy exists:

sudo pwpolicy -u $(whoami) -getaccountpolicies

Look for policyAttributeExpiresEveryNDays. If set to 90, this is your culprit. To clear it:

sudo pwpolicy -u <username> -clearaccountpolicies

 

Reference: Passcode device management payload settings for Apple devices - Apple Platform Deployment

 


Person
Forum|alt.badge.img+11
  • Jamf Heroes
  • January 21, 2026

Yes I was going to suggest, run your policy to see what the results should be on a machine you know what the results should be.  Are you using a script?


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • January 22, 2026

@h1431532403240 thanks you for your reply, I have tried the command to the affected mac, sorry for being noob, but what output should I expect? It did not show me anything after running I only get this message “Getting account policies for user <myuser>”,  nothing else, is there a folder I need to go to in order to check the policy?


h1431532403240
Forum|alt.badge.img+6

Please run this command to check the global policy:

sudo pwpolicy -getaccountpolicies

 

If you see policyAttributeExpiresEveryNDays with value 90 in the output, the policy is set by a Configuration Profile.

 


Person
Forum|alt.badge.img+11
  • Jamf Heroes
  • January 22, 2026

@aRByCM Do you know if these some of these computers with the issues accounts are mobile (AD) or local?