Local user password expiration EA

Contributor III

So we have a local user that is setup to manage the Macs via online enrollment. Since we have a password policy, the password will expire every 90 days. I'm try to stay ahead of things and would like to create a EA that tells me when how many days until the password expires and then I can set a policy to update the password.

I found examples of how to do this with an AD account, but can't seem to find one for a local account. Anyone else do something similar?