I am attempting to use @tlarkin script
#!/bin/bash
# generate local user account based on UID of greater than 1000, if multiple AD accounts exist this will grab all of them
userList=$(/usr/bin/dscl . list /Users UniqueID | /usr/bin/awk '$2 > 1000 { print $1 }')
for u in ${userList} ; do
/usr/sbin/dseditgroup -o edit -a ${u} -t user admin
done
exit 0
To make our edir users admins. It works with our test account but not our dev users. I am assuming it is not working because our user names have a space in them? Our test account does not have a space and it works just fine with that account.
Any idea's how to make this work with a username that does have a space? Or a different way to make those users admin?
