Connect Microsoft Intune to the CMDB
Install the Microsoft Intune integration and authorise Servicely to read devices and software from Microsoft Graph.
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
administratorrole 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
-
In Servicely, go to Application → Application → Applications, open integration_microsoft_intune and select Install application.

The Microsoft Intune Integration application record with the Install application button at the bottom of the form. -
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,IntuneCMDBEndUserSoftwareandIntuneCMDBInstalledSoftware.
An Intune import staging table record with the Generate temporary table button. -
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.
The Entra ID app registration with the three Microsoft Graph application permissions granted. Permission Type DeviceManagementManagedDevices.Read.AllApplication DeviceManagementConfiguration.Read.AllApplication offline_accessApplication -
In Servicely, go to Administration → Integration → System OAuth providers and select New. Apply the Microsoft template to fill in the base values.

The template picker on a new System OAuth Provider form with the Microsoft template. -
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.
The Authorization URL and Token URL as the Microsoft template fills them, with the tenant placeholder still in place. -
Save the provider.

A completed System OAuth Provider for Microsoft Intune with client ID, grant type and tenant-specific URLs. -
Go to Administration → Integration → System API outbound tokens and select New. Set Type to OAuth2, OAuth Provider to the provider you saved, Name to
MicrosoftIntuneand Scopes tohttps://graph.microsoft.com/.default. Save the token.
The System API Outbound Token for Intune with the Microsoft Graph default scope. -
Select Get authorization token. Sign in to Microsoft as the administrator whose access the integration uses, then confirm the permissions.

The Microsoft sign-in page that opens from Get authorization token. -
Back on the token record, check that State has changed from New to Ready and that Expires has a date and time.

The outbound token in the Ready state with its expiry date filled in. -
Go to Microsoft Intune → Administration → Properties. Set Auth token to the token you created and select Save.
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.