Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commands to interact with the Apple ID of the current macOS user #609

Open
rgoldberg opened this issue Oct 27, 2024 · 0 comments
Open
Labels
🧊 backlog Postponed: requires more info, requires too much effort for payoff, etc. 🆕 feature request 💬 team discussion

Comments

@rgoldberg
Copy link
Contributor

rgoldberg commented Oct 27, 2024

Possibly add new commands / modify existing commands to better interact with the Apple ID of the current macOS user.

account, signin, signout & some other commands work with the Apple ID in the Mac App Store, which is a separate setting from the Apple ID of the current macOS user.

Normally, the two are set to the same account, but they could be set to different accounts.

Disambiguate what accounts each command works with.

macOS user Apple ID

The macOS user Apple ID is associated with the current macOS user in System Settings/System Preferences. It can be observed:

  • In Swift:
(UserDefaults.standard.persistentDomain(forName: "MobileMeAccounts")?["Accounts"] as? [[String: Any]])?.first?["AccountID"]
  • From command line:
defaults read MobileMeAccounts | plutil -extract "Accounts".0."AccountID" raw -o - -

Mac App Store Apple ID

The Mac App Store Apple ID, which is when you login in the App Store app. It can be observed:

  • In Swift (in macOs <= 10.12.x):
ISStoreAccount.primaryAccount.identifier
  • From command line: not sure

Commands

Currently, I think that the commands, when working, have the following interactions with the macOS & MAS Apple IDs:

  • MAS
    • account
    • signin
    • signout
  • MAS (requires app in installed app list)
    • upgrade
  • MAS (requires app not in installed app list)
    • install
    • lucky
    • purchase
  • Neither
    • help
    • home
    • info
    • list
    • open
    • outdated
    • reset
    • search
    • uninstall
    • vendor
    • version
@rgoldberg rgoldberg added 🆕 feature request 🧊 backlog Postponed: requires more info, requires too much effort for payoff, etc. 💬 team discussion labels Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧊 backlog Postponed: requires more info, requires too much effort for payoff, etc. 🆕 feature request 💬 team discussion
Projects
None yet
Development

No branches or pull requests

1 participant