Hello,
I'm attempting to make a report in JSS to find the local users for all of our enrolled units. Any advice on the simplest way to get this done?
Report Serial + Local User
Hello,
I'm attempting to make a report in JSS to find the local users for all of our enrolled units. Any advice on the simplest way to get this done?
Report Serial + Local User
Best answer by easyedc
Can you clarify your request?
Report Serial + Local User
I use an extension attribute to check for local users
#!/bin/sh
local=`dscl . list /Users UniqueID | awk '$2 > 500 && $2 < 1000 { print $1 }'`
echo "<result>$local</result>"
exit 0
This script assumes the user is a) over 500 and b) not an AD account, which for us are UIDs starting at 10000 and up based on job role.
Occasionally I get a lost account and running
dscl . list /Users | grep -v '^_'
Spits out all macOS non-service accounts.
Does that help? Hopefully you can modify it to meet your needs.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.