fleet/docs/Contributing/product-groups/mdm/custom-configuration-web-url.md

2.1 KiB

Custom configuration web URL

In Fleet, you can require end users to authenticate with your identity provider (IdP) before they can use their new Mac.

Some customers require end users to authenticate with a custom web application instead of an IdP.

How to require end users to authenticate with a custom web application:

  1. Use Fleet's fleet YAML to create a "Workstations" fleet.

  2. Create an automatic enrollment (DEP) profile w/ the configuration_web_url set to the URL of the custom web application and await_device_configured set to true.

  3. In the "Workstations" fleet YAML, set the macos_setup_assistant option to the DEP profile.

  4. In the Fleet UI, go to Settings > Integrations > Automatic enrollment > Apple Business manager and set the Fleet to "Workstations".

  5. Update the custom web application to send a manual enrollment profile, with the end user's email, to a Mac after the end user enters valid credentials. Here's an example snippet of an enrollment profile:

<dict>
	<key>EndUserEmail</key>
	<string>user@example.com</string>
</dict>

You can use Fleet's API to get the manual enrollment profile.

  1. Update the custom web application to wait until the fleetd agent is installed on the new Mac and then do the following steps.

  2. Make a request to the GET /hosts API endpoint w/ the end user's email as a query param to get the Mac's hardware UUID. Example API request: GET /hosts?query=user@example.com.

  3. Make a request to Fleet's MDM command API to pre-fill the end user's local macOS account via the AccountConfiguration MDM command.

  4. Make a request to Fleet's MDM command API to send the Release Device from Await Configuration MDM command to allow the device through to the next step in the set up.