HexCon is coming to NYC. Catch the early-bird price before the time's up! Book me a spot

Delete user acc in mac Solved

Participant
Discussion
3 years ago

When an employee leaves, the device gets reassigned to another. Now we manually delete the user acc. which is a lot of down time for the device. Do we have an option to delete the acc without touching the device.

Replies (1)

Marked SolutionPending Review
Hexnode Expert
3 years ago
Marked SolutionPending Review

Hey @diane,
Thank you for reaching out to us.

With Hexnode UEM, you can remotely delete a user account by executing a set of commands using the Execute Custom Script action. To make use of the action, head over to Manage > Devices > select your device > Actions > Execute Custom Script.

To delete the required user account, execute the below Bash command after replacing the <username> field with the target user name.

Now, execute the below script after replacing the <username> field with the target username to delete the directories and files of the user.

If the username contains spaces, omit them when substituting in the script. Executing these commands in succession will result in the complete deletion of the user account and related data.
The above scripts are obtained from third-party open-source sites, and hence, Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

Hope this clears your query.

Cheers!
Johan Blake
Hexnode UEM