Connect to Apple School Manager or Apple Business using an API account and its private key
Prerequisites
Before you begin, ensure you have:- An Apple School Manager or Apple Business account
- The Administrator role in Apple School Manager, or the Organization Administrator role in Apple Business, to create the API account
- Organization Admin access in Ravenna
Apple School & Business Manager is organization-scoped. Each Ravenna organization can connect one Apple account.
Setup guide
Create an API account
1
Open the API settings
In Apple School Manager or Apple Business, open your account name, then Preferences, then API.
2
Create an API account
Create an API account for Ravenna and download its private key (
.pem). Apple offers the download only once, so keep the file.3
Copy the IDs
Copy the Client ID and Key ID shown on the API account.
Apple School and Business Manager API documentation
Learn more about API accounts and keys in Apple School Manager and Apple Business.
Add integration
1
Navigate to integrations
- Go to Settings > Integrations
- Find Apple School & Business Manager in the Device Management section
2
Select Apple School & Business Manager
Click Connect on the Apple School & Business Manager integration card
3
Enter the API account
Provide the following information:
The Apple product your API account was created in: Apple Business or Apple School Manager.
The Client ID shown on the API account, for example
BUSINESSAPI.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.4
Complete setup
Click Connect. Ravenna requests an access token from Apple with the API account, then reads your MDM servers to test the connection.Asset sync is on by default, so the first sync starts as soon as the connection is created, unless the integration is paused. After that it runs every 12 hours. Change the cadence with Sync Interval on the integration’s settings.
Troubleshooting
This API account can't use the Apple Business API
This API account can't use the Apple Business API
Cause: Product doesn’t match the product the API account was created in.Solution: Choose the other Product and connect again. A Client ID starting with
BUSINESSAPI. belongs to Apple Business. When the Client ID looks like the other product’s, the error says so.Rejected the credentials
Rejected the credentials
Cause: The Client ID, Key ID and private key don’t match an active API account, or the key was revoked.Solution:
- Check that all three come from the same API account, with no extra spaces
- Paste the whole
.pemfile, including theBEGINandENDlines - If the key was revoked, create a new one in Apple School Manager or Apple Business and connect again
The API account can't read MDM servers
The API account can't read MDM servers
Cause: The API account doesn’t have access to the API.Solution: Check the API account’s access in Apple School Manager or Apple Business under Preferences > API.
Couldn't reach Apple
Couldn't reach Apple
Cause: Apple didn’t answer.Solution: Try again in a few minutes.
A sync fails after it worked before
A sync fails after it worked before
Cause: Apple no longer accepts the connection’s API account, usually because its key was revoked, or the API account lost access.Solution: Create a new key in Apple School Manager or Apple Business and reconnect with it. If the API account lost access, check it under Preferences > API.