Hi there, I am new to Hexnode and need some assistance. We have a couple of macs enrolled into the portal. Our macs have multiple users using each device. Can we remotely see which users have admin access and which don’t from Hexnode?
Hi @timo-liam,
Thank you for reaching out to us.
You can fetch the list of admin users with custom scripts for macOS devices through Hexnode. To do so, navigate to Execute Custom Script under Actions in the device details page and upload a shell script file with the command below:
Fetch admin users
1 |
dscl . -read /Groups/admin GroupMembership |
You can also check whether a particular user is an admin or not using the command:
Check particular user is an admin or not
1 2 3 4 5 6 |
if groups username | grep -q -w admin; then echo "Is admin"; else echo "Not admin"; fi |
You can view the output of the commands by clicking on Show Output under Status in the Action History tab of the device details page.
Alternatively, you can enable Live Terminal on your devices to run these commands from Hexnode. You’ll be able to see the results in real-time without using custom scripts.
Hope this answer helps you.
Cheers!
Ethan Miller
Hexnode UEM
30 December 2021