Keychain Services gives a macOS app access to items allowed by its keychain access groups and item controls. Apple's supported third-party iCloud authorization covers Mail, Calendar, and Contacts. Apple offers system-mediated credential flows for specific app logins and transfers. Figment's OAuth for iCloud has an Apple Passwords scope, credentials:use, for one saved login at a time (/icloud). Sources: Apple's Keychain technote and Apple's iCloud account authorization guide.
What does iCloud Keychain store?
iCloud Keychain syncs passwords, passkeys, credit card numbers, and Wi-Fi credentials across a user's approved Apple devices (Apple Support). Enabling it requires turning on Passwords & Keychain in iCloud Settings on each device, and a new device must be approved by an already-trusted device or the account passcode before it receives the synced keychain. The Passwords app, available starting with iOS 18, iPadOS 18, macOS Sequoia, and visionOS 2, provides the user-facing view of this store. That app exists for the user. It is not a third-party API surface.
How does Apple restrict keychain access?
The rules depend on which of macOS's two keychain implementations you target.
Two implementations on macOS. macOS has a file-based keychain and a data-protection keychain (TN3137), and they use entirely different access control models. The data-protection keychain, which iCloud Keychain requires, uses keychain access groups derived from code-signing entitlements. The file-based keychain uses access control lists (SecAccess) with its own rules. Code written for iOS typically targets the data-protection keychain, and porting it to macOS without attention to this split is a common source of unexpected behavior.
Access groups and entitlements (data-protection keychain). macOS builds the list of available access groups from an app's signed entitlements, authorized by a provisioning profile (TN3137). The access-group string is prefixed by the developer team identifier. Group membership comes from signed entitlements and a provisioning profile, not from any runtime grant or token. Apple's securityd daemon evaluates every read and write against those entitlements alongside application-identifier and application-group (Apple Platform Security).
User-login context requirement. The data-protection keychain is only available to programs running in a user login context: apps, app extensions, and app-like command-line tools with the appropriate entitlements and bundle structure (TN3137). A launchd daemon runs outside a user context and must use the file-based keychain instead.
kSecAttrSynchronizable opt-in. A credential stored locally in the data-protection keychain does not automatically sync to iCloud. Setting kSecAttrSynchronizable = true opts an individual item into iCloud Keychain sync. It is also one of two ways to target the data-protection keychain in the first place (the other is kSecUseDataProtectionKeychain). An item your app reads and writes locally does not need the synchronizable attribute unless you also want it to sync.
Biometric and passcode ACLs. Items protected by a Face ID, Touch ID, Optic ID, or passcode challenge require user presence at the moment of access. No remote or background flow can satisfy this silently.
What is the difference between app-owned credentials and user-saved passwords?
App-owned credentials are readable by your app, and user-saved passwords are not. The access model draws a hard line between the two.
App-owned credentials are items your app wrote into the keychain under an access group declared in its own signed entitlements. Your app, and any other app sharing that exact access-group string and team identifier, can read them back. This is what Keychain Services is designed for: secrets that belong to your application, persisted securely across launches.
User-saved passwords and passkeys are stored under system-managed access groups that no ordinary third-party app can join. Items added through Password AutoFill or the Passwords app are off-limits to arbitrary programs. A normal app cannot query the whole user store by signing in with an Apple Account, holding an OAuth token, or declaring any combination of entitlements.
Can an app get a saved password or passkey at all?
Yes, but only through a user-approved system flow. For an existing app account, Apple can present a system prompt and return an approved saved password through ASAuthorizationPasswordProvider.
Apple also introduced ASCredentialExportManager in Authentication Services on iOS 26, iPadOS 26, macOS 26, and visionOS 26. It lets participating credential-provider extensions facilitate a user-initiated transfer of passwords and passkeys between credential managers (WWDC25 session 279). The system acts as an intermediary, presents out-of-process confirmation UI, authenticates the user locally (using Face ID or equivalent local authentication), and does not write credential data to the file system. Using this API requires a credential-provider extension with SupportsCredentialExchange declared in its Info.plist, and each transfer requires explicit user action. This is not a silent keychain query and not a Figment feature.
What is the checklist for app-owned credentials?
Use this checklist when your app controls a credential through an authorized access group.
| Step | Requirement | What blocks you if unmet |
|---|---|---|
| 1. Access group declared | Credential is in your app's signed entitlement access group, authorized by a provisioning profile | Keychain read/write fails at OS level |
| 2. Correct keychain targeted | Use kSecUseDataProtectionKeychain = true for the data-protection keychain; add kSecAttrSynchronizable = true only if the item should also sync to iCloud | Item targets wrong implementation or does not sync when expected |
| 3. User-login context | App or app-like tool runs in a user session; launchd daemons must use the file-based keychain | Data-protection keychain unavailable outside user context |
| 4. Destination and action approved | User has explicitly approved the target action and destination | Action must not proceed |
| 5. Read and write separate | Each direction of access is independently granted | Do not infer write permission from read approval |
| 6. Biometric gate satisfied | User is present if the item carries a biometric ACL | Cannot be automated without user presence |
A credential that clears all relevant steps is one your app controls, used for a specific user-approved action. It is not a general export of the user's iCloud Keychain, and it is not access to Passwords-app items.
What does Figment offer today?
OAuth for iCloud has an Apple Passwords scope, credentials:use. After the user approves it on Figment's consent screen, your app can use one saved login at a time, with its verification code. It is not an export of the whole keychain, and Figment runs the Mac that reads the login. The product page lists the plans:
- Apple Passwords
- $14/month per connected Apple Account, for
credentials:usealone. - Full iCloud suite
- $29/month per connected Apple Account, for Passwords, Messages, Notes, and Reminders on one consent screen.
- Contacts and Calendar
- a synthetic read-only sandbox is available for integration testing. No live customer access is currently offered for these services.
The developer pays for the plan, and sandbox access is free. Figment's consent model governs how your application receives a scoped grant for each of these services.
Connect Apple Account to start in the sandbox, or request a demo for live access.