To scripters out there, I'm trying to write an extension attribute that will tell me whether or not the local user matches the AD username. The macs are not AD bound, but JAMF Pro is, and the AD usernames are assigned in JAMF. My thinking is to grab the username via api, then compare and see if it matches one of the local users (most will have an additional 1 or 2 local users). I've done the API part, and I figure I'll use dscl command to get the local users. Can anyone fill in the details please? I would greatly appreciate any help.
Question
Compare local user with AD username
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
