How to

Create API connection

Create an App registration in the customer's Entra with these Application API permissions:

  • DeviceManagementManagedDevices.ReadWrite.All (Intune Managed Devices)
  • DeviceManagementServiceConfig.ReadWrite.All (Autopilot Devices)

Make sure to grant admin consent and save the values needed for the connection file.

Create connection file

Create a .json file with the following content and load it as your Connection File:

{
  "tenant_name_or_id": "Name or ID of your Entra tenant",
  "client_id": "Client ID of your app registration",
  "client_secret": "Client secret value",
  "client_secret_id": "Client secret ID",
  "object_id": "Client object ID of your app registration"
}
App mode
Connection File
Device selection
Actions
Log