So on my computers, I have the following script creating a hidden user account:
jamf createAccount -username "$userName" -realname "$realName" -password "$password" -home /private/var/"$userName" -shell "$usershell" -picture "/Library/User Pictures/Fun/Ying-Yang.png" -admin -hiddenUser -suppressSetupAssistant
I am trying to reveal this account and unhide it, so users can actually change the password easily.
What is the best way to go about it?
What I almost have working, is to simply delete this account using a similar script:
jamf deleteAccount -username "$userName" -realname "$realName" -password "$password" -home /private/var/"$userName" -shell "$usershell" -picture "/Library/User Pictures/Fun/Ying-Yang.png" -admin -hiddenUser -suppressSetupAssistant
And then have it recreated using the Local Account Payload under a policy, as an Admin account, same name.
Only problem is, it will unlock everything except Users & Groups. On some machines, it tells me it needs to be part of a "Special Use" Group, some machines say it needs to be part of Sudoers group. User is able to log out and log in as Admin and set password that way, but still unable to unlock Users & Groups pane. They can unlock any other pane though.
Really appreciate you saving me here fellas, thanks!