Integrate with Apple Business Manager
authentik: 2025.2.0+Support level: authentikPreviewEnterprise
What is Apple Business Manager?β
Apple Business Manager is a web-based portal for IT administrators, managers, and procurement professionals to manage devices, and automate device enrollment.
Organizations using Apple Business Essentials can allow their users to authenticate into their Apple devices using their IdP credentials, typically their company email addresses.
Apple packages their device management platform into three brands to cater to different audiences:
- Apple Business Manager: Large organizations
- Apple Business Essentials: Small businesses
- Apple School Manager: Educational institutions
While this integration guide focuses on Business Manager, the instructions are applicable to all three platforms with minor changes to the terminology.
Authentication Flowβ
This sequence diagram shows a high-level flow between the user's apple device, authentik, and Apple Business Manager.
In short, Apple Business Manager recognizes the email domain as a federated identity provider controlled by authentik. When a user signs in with their email address, Apple redirects them to authentik for authentication. Once authenticated, Apple enrolls the user's device and grants access to Apple services.
Preparationβ
By the end of this integration, your users will be able to enroll their Apple devices using their authentik credentials.
You'll need to have authentik instance running and accessible on an HTTPS domain, and an Apple Business Manager user with the role of Administrator or People Manager.
Be aware that Apple Business Manager imposes the following restrictions on federated authentication:
- Federated authentication should use the userβs email address as their username. Aliases arenβt supported.
- Existing users with an email address in the federated domain will automatically be converted to federated authentication, effectively taking ownership of the account.
- User accounts with the role of Administrator, Site Manager, or People Manager canβt sign in using federated authentication; they can only manage the federation process.
Placeholdersβ
The following placeholders are used in this guide:
authentik.company
: The FQDN of the authentik installation.
authentik configurationβ
The workflow to configure authentik as an identity provider for Apple Business Manager involves creating scope mappings, signing keys, a Shared Signals Framework provider, and a OIDC provider/application pair.
Together, these components will handle the authentication flow and backchannel communication between authentik and Apple Business Manager.
1. Create scope mappingsβ
Apple Business Manager requires that we create three scope mappings for our OIDC provider:
- User profile information
- Read access
- Management access
User profile informationβ
-
From the authentik Admin interface, navigate to Customization -> Property Mappings and click Create.
-
Select Scope Mapping and use the following values:
-
Name:
Apple Business Manager profile
-
Scope Name:
profile
-
Description: [optional] Set to inform user
-
Expression: Apple Business Manager requires both a given name and family name in the OIDC claim. The example expression below assumes that the user's name is formatted with the given name first, followed by the family name, delimited by a space.
Consider adjusting the expression to match the name format used in your organization.
given_name, _, family_name = request.user.name.partition(" ")
return {
"given_name": given_name,
"family_name": family_name,
}
-
-
Click Finish and confirm that new scope mapping is listed in the Property Mappings overview.
Read accessβ
-
On the Property Mappings list, click Create.
-
Select Scope Mapping and use the following values:
- Name:
Apple Business Manager ssf.read
- Scope Name:
ssf.read
- Description: [optional] Set to inform user
- Expression:
return {}
- Name:
-
Click Finish and confirm that new scope mapping is listed in the Property Mappings overview.
Management accessβ
-
On the Property Mappings list, click Create.
-
Select Scope Mapping and use the following values:
- Name:
Apple Business Manager ssf.manage
- Scope Name:
ssf.manage
- Description: [optional] Set to inform user
- Expression:
return {}
- Name:
-
Click Finish and confirm that new scope mapping is listed in the Property Mappings overview.
2. Create signing keysβ
You will need to create Signing Key to sign Security Event Tokens (SET). This key is used to both sign and verify the SETs that are sent between authentik and Apple Business Manager.
You can either generate a new key or import an existing one.
Generate a new keyβ
-
From the Admin interface, navigate to System -> Certificates
-
Click Generate, select Signing Key, and use the following values:
- Common Name:
apple-business-manager
- Common Name:
-
Click Generate and confirm that the new key is listed in the Certificates overview.
Import an existing keyβ
Alternatively, you can use an existing key if you have one available.
-
From the Admin interface, navigate to System -> Certificates.
-
Click Create and use the following values:
- Name:
apple-business-manager
- Certificate: Paste in your certificate
- Private Key: [optional] Pastein your private key
- Name:
-
Click Create and confirm that the new key is listed in the Certificates overview.
3. Create OIDC providerβ
authentik will automatically generate the Client ID and Client Secret values for the new provider. You'll need these values when configuring Apple Business Manager.
You can always find your provider's generated values by navigating to Providers, selecting the provider by name, and clicking the Edit button.
-
From the authentik Admin interface, navigate to Applications -> Providers and click Create.
-
For the Provider Type select OAuth2/OpenID Provider, click Next, and use the following values.
- Name:
Apple Business Manager
- Authorization flow: Select a flow that suits your organization's requirements.
- Protocol settings:
- Client ID: Copy the generated value to your text editor.
- Client Secret: Copy the generated value to your text editor.
- Redirect URIs/Origins:
Strict
- URL:
https://gsa-ws.apple.com/grandslam/GsService2/acs
- Signing Key: Select a certificate to sign the OpenID Connect tokens.
- Advanced protocol settings:
Any fields that can be left as their default values are omitted from the list.
- Scopes: Add four Selected Scopes to the provider.
-
Apple Business Manager ssf.manage
-
Apple Business Manager ssf.read
-
Apple Business Manager profile
-
authentik default OAuth Mapping: OpenID 'profile'
-
- Scopes: Add four Selected Scopes to the provider.
- Name:
-
Click Finish and confirm that
Apple Business Manager
is listed in the provider overview. -
Navigate to Applications -> Providers and click
Apple Business Manager
. -
Copy the OpenID Configuration URL field to your text editor.
4. Create Shared Signals Framework providerβ
While the OIDC provider handles the authentication flow, you'll need to create a Shared Signals Framework provider to handle the backchannel communication between authentik and Apple Business Manager.
-
From the authentik Admin interface, navigate to Applications -> Providers and click Create.
-
Select Shared Signals Framework Provider and use the following values. Any fields that can be left as their default values are omitted from the list.
- Name
Apple Business Manager SSF
- Signing Key:
[Your Signing Key]
- Event Retention:
days=30
- Name
-
Click Finish and confirm that the new SSF provider is listed in the overview.
A Blank SSF Config URL is expectedKeep in mind the SSF Config URL will be blank until the SSF provider is assigned to an application as a backchannel provider. We'll return to collect this URL after creating the application.
5. Assign SSF permissionsβ
The authentik user you will use to test the stream connection to Apple Business Manager must either have the role of superuser or have permission to add streams to the SSF provider.
-
From authentik the Admin interface, navigate to Applications -> Providers and click the Apple Business Manager SSF provider.
-
Click the Permissions tab, select User Object Permissions, and click Assign to new user.
-
In the User field, enter the object name of the test user performing the initial connection to Apple Business Manager.
-
Set the Add stream to SSF provider permission toggle to On
-
Click Assign and confirm that the user is listed in the User Object Permissions list.
6. Create applicationβ
-
From the authentik Admin interface, navigate to Applications -> Applications, click Create, and use the following values:
- Name: Apple Business Manager
- Slug:
abm
- Provider:
Apple Business Manager
- Backchannel Provider:
Apple Business Manager SSF
-
Click Create and confirm that the application is listed in the overview page.
-
Navigate to Providers -> Apple Business Manager SSF
- On the Overview tab copy the
SSF Config URL
value to your text editor.
- On the Overview tab copy the
7. Confirm and modify copied authentik valuesβ
Before proceeding to Apple Business Manager, let's go over the values you've copied from authentik.
-
Verify that you have all the necessary values in your text editor:
-
From the
Apple Business Manager
provider:-
Client ID
-
Client Secret
-
OpenID Configuration URL
-
-
From the
Apple Business Manager SSF
provider:-
SSF Config URL
-
-
-
Modify URLs to include the default HTTPS port. Apple requires the port number to be included when providing the URLs in the configuration.
-
Add port 443 to the SSF Config URL that you copied from the
Apple Business Manager SSF
provider:-https://authentik.company/.well-known/ssf-configuration/abm
+https://authentik.company:443/.well-known/ssf-configuration/abm -
Add port 443 to the OpenID Config URL that you copied from the
Apple Business Manager
provider:-https://authentik.company/application/o/abm/.well-known/openid-configuration
+https://authentik.company:443/application/o/abm/.well-known/openid-configuration
-
Apple Business Manager configurationβ
With these prerequisites in place, authentik is ready to act as an identity provider for Managed Apple Accounts.
Similar to a personal Apple account, a Managed Apple Account uses an email address to access Apple services and devices. What makes an Apple account managed is that the domain associated with the email address is owned and verified by an organization through an Apple Business Manager account.
1. Add and verify your domainβ
By verifying the domain, Apple Business Manager will delegate ownership of any accounts with a matching email address to the organization, allowing for centralized management of devices, apps, and services.
-
From the Apple Business Manager dashboard, click your account name on the sidebar, then select Preferences.
-
From the Preferences page, select Managed Apple Accounts tab, click Add Domain and then provide your domain name. Apple will generate a DNS TXT record that you'll need to add to your domain's DNS settings.
-
Wait for DNS propagation and click Verify to complete the domain verification process.
A confirmation dialog will prompt you to lock your domain before you can proceed with the next steps.
Locking your domain affects all enrolled usersLocking your domain ensures that only your organization can use your domain for federated authentication.
Once locked, your enrolled users will not be able to access Apple services until you complete the next steps to configure federated authentication.
Only lock your domain when you're ready to proceed with the next steps.
-
In the confirmation dialog, set the Lock Domain toggle to On and confirm that the domain displays as locked in the Managed Apple Accounts tab.
2. Capture all accountsβ
Optionally, you may choose to capture all accounts, which will convert all existing accounts with an email address in the federated domain to Managed Apple Accounts. You can also choose to capture all accounts at a later time when you're ready to manage all users in the domain.
Choosing to capture all accounts will affect all users with an email address in the federated domain, regardless of their enrollment status or device ownership. Once captured, the accounts can't be reverted to personal Apple accounts β even if the domain is unlocked.
Only capture accounts if you're sure that every user in the domain should be managed by Apple Business Manager.
-
From the Apple Business Manager dashboard, click your account name on the sidebar, then select Preferences.
-
From the Preferences page, select Managed Apple Accounts tab, and click Manage next to the domain you've verified.
-
In your domain's management dialog, ensure you understand the implications of capturing all accounts and then click Capture All Accounts.
-
Wait for Apple to complete the account capture process, and confirm that all accounts are now managed by Apple Business Manager.
3. Enable federated authenticationβ
You're now ready to configure federated authentication with authentik.
-
From the Apple Business Manager dashboard, click your account name on the sidebar, then select Preferences.
-
From the Preferences page, select Managed Apple Accounts tab, and click Get Started under the "User sign in and directory sync" section.
-
To define how you want users to sign in, choose Custom Identity Provider and click Continue.
-
On the Set up your Custom Identity Provider page, use the following values:
- Name:
authentik
- Client ID:
Your Client ID
- Client Secret:
Your Client Secret
- SSF Config URL:
Your SSF Config URL with 443 port
- OpenID Config URL:
Your OpenID Config URL with 443 port
- Name:
-
Click Continue to begin Apple's verification of your configuration.
-
When prompted to authenticate through your authentik instance, provide your credentials and click Log In.
When the test finishes, click Done to complete the configuration.
Troubleshooting connection issues during the testβ
If the connection test fails, your configuration may be incorrect. Here are some common issues to check:
- Ensure that your authentik instance is accessible from the internet from an HTTPS domain.
- Verify that the Client ID and Client Secret values are correct.
- Verify that scope mappings are created and all assigned to the OIDC provider.
- Verify that the SSF provider is assigned to the application.
- Ensure that the SSF Config URL and OpenID Configuration URL include the port number
443
.
If you're still having issues, check your authentik instance's log for any errors that might have occurred during the authentication process. If Apple can reach your authentik instance, you should see logs indicating Apple's attempts to test the authentication flow.
Configuration verificationβ
Apple Business Manager does not allow users with the role of Administrator, Site Manager, or People Manager to log in using federated authentication.
When creating test users, ensure that their role is set to Standard (or Student) to test federated authentication with authentik.
1. Create a test userβ
-
From the Apple Business Manager dashboard, click Users on the sidebar, then click Add.
-
In the Add New User dialog, use the following values:
- First Name:
Jessie
- Last Name:
Lorem
- Email:
jessie@authentik.company
- Role:
Standard
- First Name:
-
Click Save to create the user account, and then click Create Sign-In in the user's profile.
-
When prompted to choose a delivery method, select Create a downloadable PDF and CSV and click Continue. Note the temporary password provided on the next page, optionally downloading the PDF and CSV files for future reference.
-
Confirm the user is created from the authentik Admin interface by navigating to the Users page and searching for the account by their email address. Note that this may take a few minutes to synchronize.
2. Test the authentication flowβ
-
Confirmed the test user in synchronized in authentik.
-
Open a private browsing window and navigate to the Apple Business Manager.
-
In the the email field, provide the email address assigned to test user.
-
Submit the form to trigger the authentication flow.
You should be redirected to authentik for authentication and then back to Apple Business Manager to manage the test user's account.
If the test is successful, you'll be able to enroll the test user's device and access Apple services.