Unable to remove user manually either via system preferences or terminal.
I can see the user with dscl . list /users
but when using sudo dscl . delete /users/<userID> i get an access error
This is student machine that was set up to 13.1 for a new student. Joined JAMF using this account, then added student account and then wanted to go back and delete the original admin account that I joined with.
Not resolved, but changed the accounts password to a 'super secret' one that any kids don't know. Will test with another machine to see if it was machine specific.
I was able to reproduce the issue on another machine. Is the user who joins JAMF pro with 10.13.1 not able to be deleted from the computer? Any response is appreciated.
https://discussions.apple.com/thread/8087348?start=0&tstart=0
http://www.hawkdive.com/2017/01/unable-to-delete-managed-user-account.html
Have you tried using sysadminctl
to delete the account? I'm not sure dscl . delete
is a good way to delete an account anymore under 10.13.
Syntax to use:
sudo sysadminctl -deleteUser <username>
Drop the sudo if it's run from a policy.
@mm2270 That did the trick! Many thanks!
If Jamf Remote is still using dscl
and sysadminctl
is the preferred way now, that sounds worthy of a support case.
It appears to only happen with machines that were moved from 12.6 to 13.0/13.1
A fresh install of 13.0 had no issue when added to MDM. I was able to remove an admin account by Jamf Remote, command line, terminal or policy.
Had some new students that came in and I gave machines that were upgraded vs machines that were erased and then with 13.0