Hello Jamf Nation,
We are working on a project to require all of our users to update their passwords lengths from 8 digits to 12 digits.
I already have a configuration profile setup for the minimum passcode length (see below).
Additionally, I have a script setup in a policy to grab the user ID and set the device to require a change of password (see below)
# Pulls the current logged in user
currUser=$(ls -l /dev/console | awk '{print $3}')
pwpolicy -u "$currUser" -setpolicy "newPasswordRequired=1"
My question is, is there a way to add to my script to check the length of the current user password and if it meets the password requirements, to skip and not require a password change?