find the apple id the user is currently login as?

tranatisoc
New Contributor II

is it possible to determine if the user is logged in with an apple ID on their mac? and if so, how to find it? thx

1 REPLY 1

joshuasee
Contributor III

The current MAS AppleID is in ~/Library/Preferences/com.apple.commerce.plist while the current iCloud AppleID is in ~/Library/Preferences/MobileMeAccounts.plist . Note the logged in AppleID need not be the same one a given MAS app was installed with.

See Any way to tell what Apple ID an app was installed under?