---
title: "Connect Microsoft Intune to the CMDB"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/integrations/intune/
type: task
application: integration_microsoft_intune
last_updated: 2026-10-18
commit: 5ea5eb0dd83d
---


Connect Microsoft Intune to Servicely so the integration can import managed devices, detected apps and app installations into the CMDB through the Microsoft Graph API. This page is for administrators who set up the connection once, before the first sync.

## Before you begin

- You need the `administrator` role in Servicely.
- You need an account in Microsoft Entra ID that can register applications and grant admin consent. Every Intune permission scope in Microsoft Graph needs an administrator to authorise it.
- Have your Servicely instance name and your Microsoft Entra ID tenant ID ready.

## Steps

<Steps>
  <Step>
    In Servicely, go to **Application → Application → Applications**, open **integration_microsoft_intune** and select **Install application**.

    <Image src="asset:screenshots/admin/integrations-intune/image-2.png" size="70">The Microsoft Intune Integration application record with the Install application button at the bottom of the form.</Image>
  </Step>
  <Step>
    Go to **Data import → Import → Import staging tables**. Open each of the four Intune staging tables in turn and select **Generate temporary table**: `IntuneCMDBDesktop`, `IntuneCMDBLaptop`, `IntuneCMDBEndUserSoftware` and `IntuneCMDBInstalledSoftware`.

    <Image src="asset:screenshots/admin/integrations-intune/image-3.png" size="60">An Intune import staging table record with the Generate temporary table button.</Image>
  </Step>
  <Step>
    In Microsoft Entra ID, register an application for Servicely. Add the Microsoft Graph permissions in the table below, each of type **Application**, and grant admin consent. Create a client secret and keep it for step 5. Set the redirect URL to `https://<instance-name>.servicely.ai/sso/oauth_callback`.

    <Image src="asset:screenshots/admin/integrations-intune/image-4.png" size="62">The Entra ID app registration with the three Microsoft Graph application permissions granted.</Image>

    | Permission | Type |
    | --- | --- |
    | `DeviceManagementManagedDevices.Read.All` | Application |
    | `DeviceManagementConfiguration.Read.All` | Application |
    | `offline_access` | Application |
  </Step>
  <Step>
    In Servicely, go to **Administration → Integration → System OAuth providers** and select **New**. Apply the **Microsoft** template to fill in the base values.

    <Image src="asset:screenshots/admin/integrations-intune/image-5.png" size="30">The template picker on a new System OAuth Provider form with the Microsoft template.</Image>
  </Step>
  <Step>
    Enter the **Client ID** (the application ID from Entra ID) and the **Client Secret**, and set **Grant type** to **Client Credentials**. In **Authorization URL** and **Token URL**, replace `[tennant-id]` with your tenant ID.

    <Image src="asset:screenshots/admin/integrations-intune/image-6.png" size="46">The Authorization URL and Token URL as the Microsoft template fills them, with the tenant placeholder still in place.</Image>
  </Step>
  <Step>
    Save the provider.

    <Image src="asset:screenshots/admin/integrations-intune/image-7.png" size="68">A completed System OAuth Provider for Microsoft Intune with client ID, grant type and tenant-specific URLs.</Image>
  </Step>
  <Step>
    Go to **Administration → Integration → System API outbound tokens** and select **New**. Set **Type** to **OAuth2**, **OAuth Provider** to the provider you saved, **Name** to `MicrosoftIntune` and **Scopes** to `https://graph.microsoft.com/.default`. Save the token.

    <Image src="asset:screenshots/admin/integrations-intune/image-8.png" size="70">The System API Outbound Token for Intune with the Microsoft Graph default scope.</Image>
  </Step>
  <Step>
    Select **Get authorization token**. Sign in to Microsoft as the administrator whose access the integration uses, then confirm the permissions.

    <Image src="asset:screenshots/admin/integrations-intune/image-9.png" size="24">The Microsoft sign-in page that opens from Get authorization token.</Image>
  </Step>
  <Step>
    Back on the token record, check that **State** has changed from **New** to **Ready** and that **Expires** has a date and time.

    <Image src="asset:screenshots/admin/integrations-intune/image-10.png" size="70">The outbound token in the Ready state with its expiry date filled in.</Image>
  </Step>
  <Step>
    Go to **Microsoft Intune → Administration → Properties**. Set **Auth token** to the token you created and select **Save**.
  </Step>
</Steps>

## Result

Servicely can call Microsoft Graph for your Intune tenant, and the staging tables exist for the first import. The **Microsoft Intune Integration** job ships active and runs once a day at 01:00, so the next scheduled run imports data with this token. Before that run, choose V1 or V2 and review the configuration in [Run and schedule the Microsoft Intune sync](page:integrations/run-the-intune-sync).

## Related

- [Run and schedule the Microsoft Intune sync](page:integrations/run-the-intune-sync)
- [Microsoft Intune sync settings](page:integrations/intune-sync-settings)
- [Outbound credentials](page:integrations/outbound-credentials)
- [Transform maps](page:environments/transform-maps)
