---
sourceDocument: Xanadu ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/xanadu/servicenow-platform

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Configure using guided setup

# Configure Service Graph Connector for Microsoft Intune using the guided setup {#ariaid-title1}

* Release version: Xanadu
* 
* Updated February 28, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 13 minutes to read

Set up authentication credentials and a scheduled job to import Microsoft Intune data into your CMDB.

## Before you begin

Important:  
The guided setup method is deprecated from version 2.7.0 of the Service Graph Connector for Microsoft Intune. Use the SGC Central view in the Service Graph Workspace or CMDB Workspace to configure the connection for the connector.

To use this Service Graph Connector, you need a subscription to a Subscription Unit that is based in the IT Operations Management (ITOM) Visibility application or in the ITOM Discovery application. As defined in the section titled "Managed IT Resource Types" in [ServiceNow Subscription Unit Overview](https://www.servicenow.com/products/entitlements-packages.html) for your subscription, for managed IT resources that are created or modified in the CMDB by this Service Graph Connector, but that aren't yet managed by [ITOM Visibility or ITOM Discovery](https://www.servicenow.com/docs/access?context=itom-license-module&version=xanadu&pubname=xanadu-it-operations-management&ft:locale=en-US), these resources will increase Subscription Unit consumption from that application. Review your current Subscription Unit consumption within ITOM
Visibility or ITOM Discovery to ensure available capacity.  
Obtain the following information from your Microsoft Intune administrator:

* Client ID
* Client Secret
* Token URL
{#configure-intune-integration__ul_ez5_l4d_3bc}  
For the connector to access the data in Microsoft Intune, the credential information is required to use the Microsoft Graph API. Therefore, you must grant the following Graph API permissions from the App registrations page in the Microsoft portal:

* DeviceManagementManagedDevices.Read.All (Type: Application)
* DeviceManagementApps.Read.All (Type: Application)
* User.Read.All (Type: Application)
{#configure-intune-integration__ul_tvp_d4w_bzb}

For more details on permissions, see [Service Graph Connector for Microsoft Intune - Troubleshooting connection issues](https://community.servicenow.com/community?id=community_blog&sys_id=a405ef9bdbbd7018bb4a474d13961903) on ServiceNow Community and [Microsoft Graph permissions reference](https://learn.microsoft.com/en-us/graph/permissions-reference) on the Microsoft documentation site.  
Dependencies and requirements:

* The [Integration
  Commons for CMDB](https://www.servicenow.com/docs/axmSt4LXRZ~7JaNylq5TrA "The Integration Commons for CMDB (sn_cmdb_int_util) store app contains the CMDB Integrations Dashboard and a set of Robust Transform Engine (RTE) transforms and script includes.") store app, which is automatically installed.
* The CMDB CI class models store app, which is automatically installed. See [CMDB CI Class Models](https://www.servicenow.com/docs/aTLGtFfNbWZ9ytiF0bc3xA "The Configuration Management Database (CMDB) contains base-system classes that store data about Configuration Items (CIs). The CMDB CI Class Models ServiceNow Store app adds class models that extend the CMDB class hierarchy, including class descriptions, identification rules, identifier entries, and dependent relationships if applicable.").
* Datastream Action plugin (com.glide.hub.action_type.datastream), which is automatically installed.
* ITOM Licensing plugin (com.snc.itom.license). For more information, see [Request
  Discovery](https://www.servicenow.com/docs/access?context=t_ActivateTheDiscoveryPlugin&version=xanadu&pubname=xanadu-it-operations-management&ft:locale=en-US).
* ServiceNow IntegrationHub Zip step (com.glide.hub.action_step.zip), which is automatically installed.
* ServiceNow IntegrationHub JSON Parser step (com.glide.hub.action_step.jsonparser), which is automatically installed.
{#configure-intune-integration__ul_evf_gh1_wmb}

Multi-instance is supported for importing data from multiple Microsoft Intune instances in Service Graph Connector for Microsoft Intune version 2.1.1 and later. This feature involves dynamically creating data sources and scheduled imports, which requires the granting of additional permissions. The guided setup includes
additional steps for this feature.  
Role required: SGC-Admin (sn_cmdb_int_util.sgc_admin) or admin  
Note:  
The admin user role is required to run background scripts and to provide access to global tables to the SGC-Admin user. For information about the user roles for Service Graph Connectors, see [Service Graph Connector user roles](https://www.servicenow.com/docs/odDGCQdc~5YyQZN4pc48sQ#cmdb-sgc-intro__section_ett_spp_4hc).

## Procedure

1. Navigate to AllService Graph ConnectorsIntuneSetup.
2. On the Getting Started page, select Get started.
3. Configure the credentials.
   1. On the Service Graph Connector for Microsoft Intune page, in the Configure the connection section, select the task Configure credentials.
   2. On the next page, in the Configure credentials task section, select Configure.
   3. On the form, fill in the fields.  
      {#configure-intune-integration__table_l2g_zn4_nyb__entry__2}

      | Field | Description |
      |:-|:-|
      | Connection Name | Name of the Microsoft Intune application. This field is automatically set. |
      | Connection URL | Connection URL for the connection. Based on the region of your Microsoft Intune application, enter the connection URL in one of the following formats: * Global https://graph.microsoft.com * US Government https://graph.microsoft.us * China https://microsoftgraph.chinacloudapi.cn * Germany https://graph.cloudapi.de/ {#configure-intune-integration__ul_brk_244_nyb} |
      | OAuth Client ID | The client ID of the Microsoft Intune application. |
      | OAuth Client Secret | The client secret of the Microsoft Intune application. |
      | OAuth Token URL | Callback URL for the Microsoft Intune application. Based on the region of your Microsoft Intune application, enter the token URL in one of the following formats: * Global https://login.microsoftonline.com/<var class="keyword varname">&lt;tenantid&gt;</var>/oauth2/v2.0/token * US Government https://login.microsoftonline.us/<var class="keyword varname">&lt;tenantid&gt;</var>/oauth2/v2.0/token * China https://login.partner.microsoftonline.cn/<var class="keyword varname">&lt;tenantid&gt;</var>/oauth2/v2.0/token * Germany https://login.microsoftonline.de/<var class="keyword varname">&lt;tenantid&gt;</var>/oauth2/v2.0/token {#configure-intune-integration__ul_h5y_p44_nyb}Where <var class="keyword varname">&lt;tenantid&gt;</var> is the tenant ID of your Microsoft Intune application. |
      [Table 1. Edit Connection form]

      {#configure-intune-integration__table_l2g_zn4_nyb}
   4. Select Edit and Get OAuth Token.
   5. Go back to the guided setup page and for the Configure credentials task, select Mark as Complete.
   {#configure-intune-integration__substeps_bdq_3lg_rmb}
4. **Optional:** If needed, configure the MID Server.
   1. In the Configure MID Server section, select Configure.
   2. Select the Use MID server check box.
   3. Select Update to save the record.

   {#configure-intune-integration__substeps_emk_t1m_mnb}  
   Note:  
   You do not need to update the other fields.
5. Test the connection to the Microsoft Intune API.
   1. In the Test the connection section, select Configure.
   2. On the form, review the fields.  
      {#configure-intune-integration__table_ahk_wlg_rmb__entry__2}

      | Field | Description |
      |:-|:-|
      | Name | Unique name for this data source. |
      | Import set table label | Label of the table that will be created for this data source. |
      | Import set table name | Name of the table that will be created for this data source. |
      | Data in single column | Option to set to data in single column. |
      | Type | Data storage type of the data to be imported. |
      | Application | Application containing this record. |
      [Table 2. Data Source form]

      {#configure-intune-integration__table_ahk_wlg_rmb}
   3. **Optional:** Modify the properties in the Service Graph Connection Properties related list of the connection record.  
      Note:  
      Try to retain the default value of the software_path property to ensure the proper retrieval of software details.
   4. Select the Test Connection related link to start the testing process.
   5. When the Status field is set to Success, return to the guided setup page.  
      If any of the tests have errors, follow the suggestions for remediation.
   6. In the Test the connection task section, select Mark as Complete.
   {#configure-intune-integration__substeps_elr_vlg_rmb}
6. Add multiple instances.
   1. On the left sidebar, select the Add Multiple Instances icon (![Add Multiple Instances icon.]()).
   2. On the Service Graph Connector for Microsoft Intune page, in the Add Multiple Instances section, select the Update Data Source Access task.
   3. Select the Global application scope by using the application picker. {#configure-intune-integration__global}
   {#configure-intune-integration__global}
   4. In the Application Access related list, select the Can create, Can update, and Can delete check boxes, if not already selected.
   5. Select Update to close the tab and return to the guided setup.
   6. Modify the application scope again to Service Graph Connector for Microsoft Intune by using the application picker. {#configure-intune-integration__app}
   {#configure-intune-integration__app}
   7. Set the Update Data Source Access task to complete by selecting Mark as Complete.
   8. Repeat the steps [6.c](https://www.servicenow.com/docs/czicTSa1~njmx6vS027~cw#configure-intune-integration__global) to [6.f](https://www.servicenow.com/docs/czicTSa1~njmx6vS027~cw#configure-intune-integration__app) for the Update Scheduled data import access task with the Scheduled data import \[scheduled_data_set\] table and set the task to complete by selecting Mark as Complete.
   {#configure-intune-integration__substeps_l3v_4vn_fsb} {#configure-intune-integration__add-multi-instance}
{#configure-intune-integration__add-multi-instance}
7. Clear the cache for the new connection.
   1. In the Clear Cache for Datasource and Import set section, select Configure.
   2. In the Run script text box of the background script page, enter the following script:  


                GlideTableManager.invalidateTable("sys_data_source");
                GlideCacheManager.flushTable("sys_data_source");

                GlideTableManager.invalidateTable("scheduled_import_set");
                GlideCacheManager.flushTable("scheduled_import_set");

                GlideTableManager.invalidateTable("sys_db_object");
                GlideCacheManager.flushTable("sys_db_object");

   3. Select Run Script to run the background script in the global scope.  
      The script may take several minutes to execute.
   4. After the script is executed, select Close.
   5. From the application picker, select the Service Graph Connector for Microsoft Intune application.
   6. Select Mark as Complete.
   {#configure-intune-integration__substeps_wns_qn2_2sb}
8. To either add or save the connection, select Configure for the Create or Edit connection task.  
   * To add a connection, select Add Connection.
   * To save the edits for the existing connection, select Edit.

   {#configure-intune-integration__ul_ivy_pfn_4tb}  
   Note:  
   Obtain the following information from your Microsoft Intune administrator:
   * Client ID
   * Client Secret
   * Token URL

   {#configure-intune-integration__ul_lgt_mfv_y4b}

   When a Microsoft Intune administrator registers an application, the Client ID, Client Secret, and Token URL will be available. To get more information about how to register an application, see the [Microsoft Intune documentation site](https://docs.microsoft.com/en-us/mem/intune/developer/intune-graph-apis).
   1. On the form, fill in the fields or edit as needed.  
      {#configure-intune-integration__table_vyj_kgv_y4b__entry__2}

      | Field | Description |
      |-|-|
      | Connection Name | Display name for the connection. |
      | Connection URL | Connection URL for the new connection. Based on the region of your Microsoft Intune application, enter the connection URL in one of the following formats: * Global https://graph.microsoft.com * US Government https://graph.microsoft.us * China https://microsoftgraph.chinacloudapi.cn * Germany https://graph.cloudapi.de/ {#configure-intune-integration__ul_ujp_fjl_nyb} |
      | OAuth Client ID | Client ID for the Microsoft Intune application. |
      | OAuth Client Secret | Client Secret for the Microsoft Intune application. |
      | OAuth Token URL | Callback URL for the Microsoft Intune application. Based on the region of your Microsoft Intune application, enter the token URL in one of the following formats: * Global https://login.microsoftonline.com/<var class="keyword varname">&lt;tenantid&gt;</var>/oauth2/v2.0/token * US Government https://login.microsoftonline.us/<var class="keyword varname">&lt;tenantid&gt;</var>/oauth2/v2.0/token * China https://login.partner.microsoftonline.cn/<var class="keyword varname">&lt;tenantid&gt;</var>/oauth2/v2.0/token * Germany https://login.microsoftonline.de/<var class="keyword varname">&lt;tenantid&gt;</var>/oauth2/v2.0/token {#configure-intune-integration__ul_kwh_5hl_nyb}Where <var class="keyword varname">&lt;tenantid&gt;</var> is the tenant ID of your Microsoft Intune application. |
      [Table 3. Create Connection form]

      {#configure-intune-integration__table_vyj_kgv_y4b}
   2. Either add or save the connection.  
      * To create the new connection, select Create and Get OAuth Tokens.
      * To save the edits for the existing connection, select Edit and Get OAuth Token.
      {#configure-intune-integration__ul_t3t_ytv_dpb}
   3. Navigate back to the guided setup and select Mark as Complete.
   4. **Optional:** Set up the MID Server for the connection you created.  
      1. In the Configure Mid Servers section, select Configure.
      2. Select the name of the connection you created.
      3. Select the Use MID server check box.
      4. Select Update.
      5. When you're finished with the task, select Mark as Complete
      {#configure-intune-integration__ol_u55_gwc_5qb}
   {#configure-intune-integration__substeps_orp_ryn_fsb}
9. Test the API connection to import data from the Microsoft Intune application.
   1. Test the connection, in the Test New Connections section, by selecting Configure.  
      1. Select the name of the data source associated with the newly created connection.
      2. Select the Test Connection related link to start the process.
      3. Optionally modify the properties in the Service Graph Connection Properties related list.{#configure-intune-integration__table_f4m_xhf_4yb__entry__2}

         | Property | Description |
         |-|-|
         | api_version | The version of the Microsoft Intune Graph API. |
         | software_path | The path of the software code for finding apps and associated devices or vice versa. Leave the property value as is. |
         | include_primary_user_details | Enable retrieving the details of the primary user during import and populating the assigned_to attribute in the records of the cmdb_ci table by setting the property value to <kbd class="ph userinput">true</kbd>. For retrieving the enrolled user details, set the property value to <kbd class="ph userinput">false</kbd>. Retrieving primary user details increases the time for importing data because of additional API calls. Note: When a user is assigned to a device initially, the enrolled and primary users are the same. If the device is reassigned to another user, the primary user name is reassigned to the new user, but the enrolled user is still the original enrolled user name. |
         | include_ip_address_details | Enable retrieving the IP addresses of devices during import and populate the records in the cmdb_ci_ip_address table by setting the property value to <kbd class="ph userinput">true</kbd>. To skip retrieving IP addresses, set the property to <kbd class="ph userinput">false</kbd>. Retrieving IP addresses increases the time for importing data because of additional API calls. |
         [Table 4. Microsoft Intune connection properties]

         {#configure-intune-integration__table_f4m_xhf_4yb}  
         Note:  
         The properties in the Service Graph Connection Properties related list of the connection record are modifiable. However, try to retain the default value of the software_path property to ensure the proper retrieval of software details.
      4. When the Status field is set to Success, return to the guided setup page.  
         Note:  
         If any of the tests have errors, follow the suggestions for remediation.
      5. Return to the guided setup and select Mark as Complete for the Test New Connections task.
      {#configure-intune-integration__ol_g4v_tg4_fsb}
   {#configure-intune-integration__substeps_ads_2b4_fsb}
10. Set up the scheduled import jobs.
    1. For the Configure scheduled jobs task in the Set up scheduled import jobs section, select Configure.
    2. Select the name of the scheduled import you want to run.
    3. On the Scheduled Data Import form, verify the field values for the scheduled job and select the Active check box.  
       For more information, see [Schedule a data import](https://www.servicenow.com/docs/access?context=t_ScheduleADataImport&version=xanadu&pubname=xanadu-integrate-applications&ft:locale=en-US#table_r53_5hm_xp).
    4. Select Update.
    5. Set the Configure scheduled jobs task to complete by selecting Mark as Complete.
    {#configure-intune-integration__substeps_dg5_rmg_rmb}
11. Use advanced options to resolve server errors and improve performance with the SG-Intune Computer, SG-Intune Devices, and SG-Intune Software data sources while importing a large number of devices into the Microsoft Intune portal.  
    Note:  
    * The SG-Intune Device Reports data source serves as an alternative to the SG-Intune Computer and SG-Intune Devices data sources, importing the same information while optimizing the data retrieval process by minimizing API calls and reducing import time.
    * The SG-Intune Software Reports data source serves as an alternative to the SG-Intune Software data source.
    * Both the SG-Intune Device Reports and SG-Intune Software Reports data sources require the paid ServiceNow IntegrationHub Professional Pack Installer (com.glide.hub.integrations.professional) plugin.
    * To enable the creation of attachments, the glide.attachment.extensions system property must be set to either null or `zip, json`.

      For more information, see the [Service Graph Connector For Microsoft Intune -- Advanced \[KB1641546\]](https://support.servicenow.com/kb_view.do?sysparm_article=KB1641546) article in the Now Support Knowledge Base.
    {#configure-intune-integration__ul_cy3_4yn_ccc}
    1. Configure the scheduled jobs to import data using the SG-Intune Device Reports and SG-Intune Software Reports data sources.  
       1. In the Advanced \[Beta\] section, for the Configure scheduled jobs for advanced data sources task, select Configure.
       2. In the Scheduled jobs list, select SG-Intune Trigger Device Reports job.{#configure-intune-integration__select-job}
       {#configure-intune-integration__select-job}
       3. On the Scheduled Script Execution form, verify the field values for the scheduled job and select the Active check box.

          For more information, see [Schedule script execution form](https://www.servicenow.com/docs/access?context=t_ScheduleAScriptExecution&version=xanadu&pubname=xanadu-platform-administration&ft:locale=en-US#t_ScheduleScriptExecution).
       4. Select Update.{#configure-intune-integration__exe-job}
       {#configure-intune-integration__exe-job}
       5. To activate the scheduled job for the SG-Intune Software Reports data source, repeat steps [11.a.ii](https://www.servicenow.com/docs/czicTSa1~njmx6vS027~cw#configure-intune-integration__select-job) to [11.a.iv](https://www.servicenow.com/docs/czicTSa1~njmx6vS027~cw#configure-intune-integration__exe-job) by selecting the SG-Intune Trigger Software Reports scheduled job.
       6. Return to the guided setup page and set the Configure scheduled jobs for advanced data sources task to complete by selecting Mark as Complete.

       {#configure-intune-integration__ol_g5c_5zn_ccc}  
       Important:  
       * Deactivate the SG-Intune Computer and SG-Intune Devices scheduled imports after setting up the SG-Intune Trigger Device Reports scheduled job for the SG-Intune Device Reports data source.
       * Deactivate the SG-Intune Software scheduled import after setting up the SG-Intune Trigger Software Reports scheduled job.
       * Activate the ServiceNow IntegrationHub Professional Pack Installer (com.glide.hub.integrations.professional) plugin on your instance.

       {#configure-intune-integration__ul_h5c_5zn_ccc}For more information, see the [Service Graph Connector For Microsoft Intune -- Advanced \[KB1641546\]](https://support.servicenow.com/kb_view.do?sysparm_article=KB1641546) article in the Now Support Knowledge Base.
    2. Configure the scheduled import for the SG-Intune Device Reports and SG-Intune Software Reports data sources.  
       1. In the Advanced \[Beta\] section, for the Configure the scheduled import for advanced data sources task, select Configure.
       2. In the Scheduled Data Imports list, select the SG-Intune Device Reports scheduled import.{#configure-intune-integration__data-import-start}
       {#configure-intune-integration__data-import-start}
       3. On the Scheduled Data Import form, verify the field values for the scheduled data import and select the Active check box.

          For more information, see [Schedule a data import](https://www.servicenow.com/docs/access?context=t_ScheduleADataImport&version=xanadu&pubname=xanadu-integrate-applications&ft:locale=en-US#table_r53_5hm_xp).
       4. Select Update.{#configure-intune-integration__data-import-exe}
       {#configure-intune-integration__data-import-exe}
       5. Return to the guided setup page and set the Configure the scheduled import for advanced data sources task to complete by selecting Mark as Complete.

       {#configure-intune-integration__ol_i5c_5zn_ccc}  
       Important:  
       Verify that the SG-Intune Device Reports scheduled import is configured to run 3 hours after the SG-Intune Trigger Device Reports and SG-Intune Trigger Software Reports scheduled jobs.

       Example: If
       the SG-Intune Trigger Device Reports job is set for 9 a.m. and SG-Intune Trigger Software Reports for 10 a.m. daily, schedule the SG-Intune Device Reports scheduled import for 1 p.m. daily.
    3. When using multiple instances, update the permissions on the Scheduled Script Execution \[sys_autoscript\] table so that you can add scheduled jobs for the new connections.  
       1. For the Update scheduled job access task, select Configure.
       2. Select the Global application scope from the application picker.
       3. In the Application Access related list, select the Can create, Can update, and Can delete check boxes.
       4. Select  Update.
       5. Switch back to the Service Graph Connector for Microsoft Intune application scope using the application picker.
       6. Return to the guided setup page and set the Update scheduled job access task to complete by selecting Mark as Complete.
       {#configure-intune-integration__ol_j5c_5zn_ccc}
    4. When using multiple instances, clear the Scheduled Script Execution (sysauto_script) table cache to configure scheduled jobs for the new connections.  
       1. For the Clear cache for scheduled job task, select Configure.
       2. Select the Global application scope from the application picker.
       3. In the Run script field, enter the following code:

              GlideTableManager.invalidateTable("sysauto_script"); 
              GlideCacheManager.flushTable("sysauto_script"); 
              GlideTableManager.invalidateTable("sys_db_object"); 
              GlideCacheManager.flushTable("sys_db_object");

       4. Select  Run Script.
       5. Switch back to the Service Graph Connector for Microsoft Intune application scope using the application picker.
       6. Return to the guided setup page and set the Clear cache for scheduled job task to complete by selecting Mark as Complete.
       {#configure-intune-integration__ol_k5c_5zn_ccc}
    5. When using multiple instances, create advanced data sources, scheduled jobs, and scheduled imports for the new connections.  
       Tip:  
       You can create additional connections for multiple instances by following the instructions in the [Add Multiple Instances](https://www.servicenow.com/docs/czicTSa1~njmx6vS027~cw#configure-intune-integration__add-multi-instance) section of the guided setup.
       1. For the Set up advanced data sources for multiple instances task, select Configure.
       2. On the form, fill in the fields to configure your scheduled job details for the new connection. {#configure-intune-integration__table_uhc_5nx_dcc__entry__2}

          | Field | Description |
          |-|-|
          | Instance Prefix to Data source and Scheduled data import sets | Identifier that is used in all of the data source and scheduled import names for this distinct SG-Intune connection. In a multiple instance deployment, keep prefix short, meaningful identifier that enables you to identify a set of related data sources. Note: Try to keep the prefix the same as your connection name. |
          | Connection and Credentials Alias | Connection alias that was created in the previous step. |
          | Run Scheduled Import as User | User to populate the field on the scheduled data import. |
          [ ]

          {#configure-intune-integration__table_uhc_5nx_dcc}
       3. Select Submit to create scheduled imports for your new connection.
       4. To activate any newly created scheduled jobs, repeat steps [11.a.ii](https://www.servicenow.com/docs/czicTSa1~njmx6vS027~cw#configure-intune-integration__select-job) to [11.a.iv](https://www.servicenow.com/docs/czicTSa1~njmx6vS027~cw#configure-intune-integration__exe-job).
       5. To activate any newly created parent scheduled import, repeat steps [11.b.ii](https://www.servicenow.com/docs/czicTSa1~njmx6vS027~cw#configure-intune-integration__data-import-start) to [11.b.iv](https://www.servicenow.com/docs/czicTSa1~njmx6vS027~cw#configure-intune-integration__data-import-exe).
       6. Return to the guided setup page and set the Set up advanced data sources for multiple instances task to complete by selecting Mark as Complete.
       {#configure-intune-integration__ol_l5c_5zn_ccc}
    {#configure-intune-integration__substeps_f5c_5zn_ccc}

*[\>]: and then


