-1

How to get iCloud user info such as login email or user name in OSX ?

damithH
  • 5,148
  • 2
  • 27
  • 31

1 Answers1

0

There's no API to access iCloud account details.

If you use the AddressBook framework, you could try looking up the "me" card in ABAddressBook. That might include the person's iCloud email, but it might not. You really have no reliable way to get this information without the user's permission, so why not just ask them?

Tom Harrington
  • 69,312
  • 10
  • 146
  • 170