---
title: "Connect Microsoft Intune to the CMDB"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/integrations/intune/connect-intune/
type: task
application: integration_microsoft_intune
last_updated: 2026-12-03
commit: 6777698daac5
---


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 **Applications & licensing → Applications → Applications** and open the **Available** tab. Select **Microsoft Intune Integration**, then select **Install**. It needs the CMDB application.
  </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-connect-intune/generate-temporary-table.png" size="70">The IntuneCMDBLaptop staging table with the Generate temporary table button at the foot of the form.</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>.servicely.ai/sso/oauth_callback`.

    <Image src="asset:screenshots/admin/integrations-intune-connect-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 **Integrations → API access → System OAuth providers** and select **New**. Open the templates menu at the top right and select **Microsoft** to fill in the base values.

    <Image src="asset:screenshots/admin/integrations-intune-connect-intune/oauth-provider-templates.png" size="50">The templates menu on a new System OAuth Provider, offering Google, Microsoft, Microsoft - Multitenant and ServiceNow.</Image>
  </Step>
  <Step>
    Enter a **Name**, the **Client ID** (the application ID from Entra ID) and the **Client Secret**. Set **Grant type** to **Client Credentials**. In **Authorization URL** and **Token URL**, replace `[tennant-id]` with your tenant ID. Select **Create**.

    <Image src="asset:screenshots/admin/integrations-intune-connect-intune/microsoft-oauth-provider.png" size="80">A new System OAuth Provider from the Microsoft template, with the tenant placeholder still in both URLs.</Image>
  </Step>
  <Step>
    Go to **Integrations → API access → System API outbound tokens** and select **New**. Set **Name** to `MicrosoftIntune`, **Type** to **OAuth2** and **OAuth Provider** to the provider you created. Set **Scopes** to `https://graph.microsoft.com/.default`. To keep the token to Microsoft Graph, set **Allowed Hosts** to `graph.microsoft.com`. Select **Create**.

    <Image src="asset:screenshots/admin/integrations-intune-connect-intune/intune-outbound-token.png" size="80">A new OAuth2 System API Outbound Token named MicrosoftIntune 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-connect-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** is **Ready** and **Expires** has a date and time.

    <Image src="asset:screenshots/admin/integrations-intune-connect-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 → Properties**. Set **Auth token** to the token you created and select **Save & stay**.

    <Image src="asset:screenshots/admin/integrations-intune-connect-intune/intune-properties.png" size="80">The Intune properties page with the Connectivity, Paging and call intervals, and Servicely CMDB sections.</Image>
  </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/intune/run-the-intune-sync).

## Related

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