Hi all
Is there any way that we can find out what is the current Apple ID on the Mac ??
Solved
what is the current Apple ID on the Mac?
Best answer by stevewood
I use the following EA to grab the user signed into iCloud:
#!/bin/sh
## Get logged in user
loggedInUser=$(stat -f%Su /dev/console)
icloudaccount=$( defaults read /Users/$loggedInUser/Library/Preferences/MobileMeAccounts.plist Accounts | grep AccountID | cut -d '"' -f 2)
if [ -z "$icloudaccount" ]
then
echo "<result>No Accounts Signed In</result>"
else
echo "<result>$icloudaccount</result>"
fiEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
