Create a JSON file - Intune

Hello,

We have our website hosted on HubSpot with the Designly Theme, and with the new IOS update, we need to create a JSON file on our website. This is the information I have been given by our system admins and what they need:

Configuring Account Driven User Enrollment

Account driven user enrollment is anchored by publishing a JSON file that contains information about the Intune tenant the device will be enrolled in. Upon entering Entra ID credentials to initiate Intune enrollment, the device looks at the domain name that is derived from the user’s credentials and then searches for the JSON file. Once the tenant has been identified, the enrollment process is launched.

Here are the steps to configure account driven user enrollment:

Create a JSON file

If you are not well versed in creating and managing web sites, publishing a JSON file may seem foreign to you. In this case, ask the developers of the company website to perform the steps below:

I went into design manager, but I don’t see a way to add a json file. I also tried pasting the code into the advanced section on our home page, but that just shows up on our page and it didn’t validate.

Any assistance would be wonderful!

Hi @RStreicherI’ve put together a step-by-step guide to help you achieve the functionality you’re looking for. This is an unusual HubSpot case where some applications, like Intune or Apple MDM, require a specific file to be accessible at a predefined location (.well-known) on your domain. Since HubSpot doesn’t natively support direct folder structures like .well-known, we need to adapt the approach to fit HubSpot’s architecture.

Here’s how you can get it set up:

Step 1: Create the JSON File

  1. Open a text editor (e.g., Notepad or VS Code).
  2. Add the provided JSON content:

json

{ “Servers”: [ { “Version”: “mdm-byod”, “BaseURL”: “https://manage.microsoft.com/EnrollmentServer/PostReportDeviceInfoForUEV2?aadTenantId=YourAADTenantID” } ] }

  1. Replace YourAADTenantID with your actual Azure Active Directory (AAD) Tenant ID, which can be found at https://entra.microsoft.com > Overview.
  2. Save the file with the .json extension (e.g., intune-enrollment.json).

Step 2: Upload the JSON File to HubSpot

  1. Log in to your HubSpot account.
  2. Go to Marketing > Files and Templates > Files.
  3. Upload the intune-enrollment.json file.
  4. Open the file details and:

Step 3: Create a Proxy Redirect for the .well-known Directory

Now the JSON file to be accessible under the .well-known directory. HubSpot doesn’t allow direct folder creation, so you’ll need a proxy redirect.

  1. Go to Settings > Website > Domains & URLs.

  2. Select the URL Redirects tab and click Add URL Redirect.

  3. Set up the redirect:

  4. Open More Options and choose Proxy as the redirect style.

    • A proxy redirect ensures that the .well-known path is preserved in the browser but serves the file from its actual location.
  5. Save the redirect.

Step 4: Verify the File’s Accessibility

  1. In your browser, navigate to the intended .well-known URL:
    https://www.YOUR-DOMAIN.com/.well-known/intune/intune-enrollment.json
  2. Verify that:
    • The JSON file is accessible.
    • It has the correct content.

Hope this helps!

Thank you very much this worked! :grin: