Hi,
The value of the Password Never Expires option is set by a bit of the userAccountControl attribute. To prevent the Password Never Expires option of an AD user from being modified, you can deny the access to write userAccountControl in the advanced security settings of the user properties.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.