Hi everyone, we need to see which apple id is being used on every device we have enrolled in jamf. For this I've created an extension attribute that seems to work but only for a few hours.
I don't understand why but after a while it goes from this:
to this:
and if I run a sudo jamf recon it goes back to normal for another while but after sometime it keeps going bad.
this is the script that I'am using:
!/bin/bash
appleid=$(/usr/libexec/PlistBuddy -c "print :Accounts:0:AccountID" ~/Library/Preferences/MobileMeAccounts.plist);
echo "<result>$appleid</result>"
exit 0
Do you have any suggestions or ideas about why this happening?
Thanks in advance
ps: I am pretty new to mac and jamf