<h2>Integrating with Microsoft Dynamics 365 and Power Apps</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="concept" /><meta name="DC.title" content="Integrating with Microsoft Dynamics 365 and Power Apps" /><meta name="abstract" content="Integrating your ServiceNow instance with the Microsoft Dynamics 365 and Power Apps service enables you to track your software subscriptions and to reclaim unused licenses." /><meta name="description" content="Integrating your ServiceNow instance with the Microsoft Dynamics 365 and Power Apps service enables you to track your software subscriptions and to reclaim unused licenses." /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2023-08-03" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="integrating-with-microsoft365" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Integrating with Microsoft Dynamics 365 and Power Apps</title></head><body> <div class="nested0" id="integrating-with-microsoft365"> <h1 class="title topictitle1" id="ariaid-title1">Integrating with <span class="ph">Microsoft</span> Dynamics 365 and Power Apps</h1> <div class="body conbody"><p class="shortdesc">Integrating your <span class="ph">ServiceNow</span> instance with the <span class="ph">Microsoft</span> Dynamics 365 and Power Apps service enables you to track your software subscriptions and to reclaim unused licenses.</p> <div class="note important"><span class="importanttitle">Important:</span> <p class="p">This integration retrieves user subscription details for all <span class="ph">Microsoft</span> Dynamics 365 and Power Apps products. Furthermore, <span class="ph">Software Asset Management</span> provides license compliance for the products using user subscription-based models.</p> <div class="p">For optimization, <span class="ph">Software Asset Management</span> automatically tracks the last activity date and identifies low-usage for the following applications:<ul class="ul" id="integrating-with-microsoft365__ul_ftf_w2l_hrb"><li class="li">Dynamics 365 for Sales (Professional, Premium, Enterprise)</li><li class="li">Dynamics 365 for Customer Service (Enterprise Attach to Qualifying Dynamics)</li><li class="li">Dynamics 365 for Team Members</li></ul> </div> </div> <p class="p">For more information about the <span class="ph">Microsoft 365</span> service, see <a class="xref" href="https://www.microsoft.com/en-in/microsoft-365/microsoft-365-for-home-and-school-faq" target="_blank" rel="noopener noreferrer">Microsoft 365 frequently asked questions</a>.</p> <div class="note important"><span class="importanttitle">Important:</span> Minimize security risks and protect information by granting access only to the necessary user or API permissions. <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="integrating-with-microsoft365__table_box" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Minimal user permissions</span></caption><colgroup><col style="width:33.33333333333333%" /><col style="width:33.33333333333333%" /><col style="width:33.33333333333333%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d285417e107">Process</th><th class="entry cellrowborder" style="vertical-align:top;" id="d285417e110">Required user role in the <span class="ph">Microsoft</span> Dynamics 365 and Power Apps application</th><th class="entry cellrowborder" style="vertical-align:top;" id="d285417e116">Authentication scopes</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d285417e107 ">Download subscriptions</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d285417e110 "> <ul class="ul" id="integrating-with-microsoft365__ul_jcb_4qb_ybc"><li class="li">Global administrator</li><li class="li">Dynamics 365 administrator</li></ul> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d285417e116 "> <ul class="ul" id="integrating-with-microsoft365__ul_kcj_bgq_pbc"><li class="li">Organization.Read.All</li><li class="li">User.Read.All</li><li class="li">user_impersonation</li></ul> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d285417e107 ">Pull user activity</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d285417e110 ">Dynamics 365 administrator</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d285417e116 ">user_impersonation</td></tr></tbody></table> </div> </div> </div> <div class="topic task nested1" id="setup-ms-azure-ad"> <h2 class="title topictitle2" id="ariaid-title2">Set up <span class="ph">Microsoft Azure</span> Active Directory</h2> <div class="body taskbody"><p class="shortdesc">Set up <span class="ph">Microsoft Azure</span> Active Directory (AD).</p> <div class="section prereq p"> <p class="p">Role required: Global administrator and Dynamics 365 administrator in Microsoft admin center</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Open <span class="ph">Microsoft Azure</span> App registration page and log in using an admin account.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">+ New registration</span>.</span> <div class="itemgroup stepresult">Register an application page appears.</div> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Name</span> field, enter the name of the application that you want to register.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Under Supported account types, select an account with the required organizational directory.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">Register</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Open the application that you registered and go to <span class="ph uicontrol">Overview</span> section.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Collect the Application (client) ID and Application (tenant) ID.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Go to Certificates and Secrets section.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Create a new client secret.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Collect the client secret key.</span> <div class="itemgroup info">You will need the client secret key while configuring your <span class="ph">ServiceNow</span> instance.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Under API Permission, click <span class="ph uicontrol">+ Add a permission</span> and select APIs my organization uses.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select Microsoft Graph and add the following Delegated Permissions.</span> <div class="itemgroup info"> <ul class="ul" id="setup-ms-azure-ad__ul_ix4_ygm_kqb"><li class="li"><code class="ph codeph">Organization.Read.All</code></li><li class="li"><code class="ph codeph">User.Read.All</code></li><li class="li"><code class="ph codeph">Offline_access</code></li></ul> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select Dynamics CRM and add the following permission.</span> <div class="itemgroup info"> <code class="ph codeph">user_impersonation</code> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Under Grant consent, click <span class="ph uicontrol">Grant admin consent</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the Authentication section, under the Redirect URI, enter the redirect URI of the <span class="ph">ServiceNow</span> instance.</span> </li></ol> </div> </div> <div class="topic task nested1" id="setup-ms-dynamics-365"> <h2 class="title topictitle2" id="ariaid-title3">Set up <span class="ph">Microsoft</span> Dynamics 365 and Power Apps</h2> <div class="body taskbody"><p class="shortdesc">Set the system-level settings for <span class="ph">Microsoft</span> Dynamics 365 and Power Apps.</p> <div class="section prereq p" id="setup-ms-dynamics-365__prereq_gx3_rkh_gtb"> <p class="p">Role required: admin</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Go to <a class="xref" href="https://admin.powerplatform.microsoft.com/" target="_blank" rel="noopener noreferrer">https://admin.powerplatform.microsoft.com/</a>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Under Environments, select the environment for which you want to pull the dynamics activities.</span> </li><li class="li step stepexpand"> <span class="ph cmd">From the top ribbon, click <span class="ph uicontrol">Settings</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">Audit and logs</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select all of the following check boxes.</span> <div class="itemgroup info"> <ul class="ul" id="setup-ms-dynamics-365__ul_nl2_35c_lqb"><li class="li">Start Auditing</li><li class="li">Log access</li><li class="li">Read logs</li></ul> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">Additional Audit Settings</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">From the <span class="ph uicontrol">Settings</span> list, select Auditing and click <span class="ph uicontrol">Global Audit Settings</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select the following check boxes.</span> <div class="itemgroup info"> <ul class="ul" id="setup-ms-dynamics-365__ul_zpc_55c_lqb"><li class="li">Start Auditing</li><li class="li">Audit user access</li><li class="li">Start Read Audit</li><li class="li">Common Entities</li><li class="li">Sales Entities</li><li class="li">Customer Service Entities</li></ul> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">OK</span>.</span> </li></ol> </div> </div> <div class="topic task nested1" id="setup-servicenow-instance-for-ms365"> <h2 class="title topictitle2" id="ariaid-title4">Set up <span class="ph">ServiceNow</span> instance for <span class="ph">Microsoft</span> Dynamics 365 and Power Apps</h2> <div class="body taskbody"><p class="shortdesc">Set up <span class="ph">ServiceNow</span> instance for <span class="ph">Microsoft</span> Dynamics 365 and Power Apps to track your software subscriptions and to reclaim unused licenses.</p> <div class="section prereq p"> <p class="p">Role required: admin or sam_integrator</p> </div> <div class="section context" id="setup-servicenow-instance-for-ms365__context_lfz_45l_mtb"> <p class="p">If you’re using <span class="ph">Software Asset Workspace</span>, the option to create the <span class="ph">Microsoft</span> Dynamics 365 and Power Apps integration profile in <span class="ph">Core UI</span> is inactive.</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to the integration profile.</span> <table border="1" frame="hsides" rules="rows" cellpadding="4" cellspacing="0" summary="" class="simpletable choicetable choicetableborder" id="setup-servicenow-instance-for-ms365__choicetable_o3p_z3k_qtb"><colgroup><col style="width:50%" /><col style="width:50%" /><table><thead><tr class="sthead chhead"><th class="stentry choptionhd" style="vertical-align:bottom;text-align:left;" id="d285417e609-option">Interface</th><th class="stentry chdeschd" style="vertical-align:bottom;text-align:left;" id="d285417e609-desc">Action</th></tr></thead><tbody><tr class="strow chrow"><th style="vertical-align:top;" headers="d285417e609-option" id="d285417e622" class="stentry choption">Core UI</th><td style="vertical-align:top;" headers="d285417e609-desc d285417e622" class="stentry chdesc"> <ol class="ol" type="a" id="setup-servicenow-instance-for-ms365__ol_ijd_bjk_qtb"><li class="li">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">Software Asset</span> > <span class="ph uicontrol">SaaS License</span> > <span class="ph uicontrol">Direct Integration Profiles</span></span>.</li><li class="li">Select <span class="ph uicontrol">New</span>.</li><li class="li">Select <span class="ph uicontrol">Microsoft Dynamics 365 and Power Apps Integration Profile</span>.</li></ol> </td></tr><tr class="strow chrow"><th style="vertical-align:top;" headers="d285417e609-option" id="d285417e664" class="stentry choption">Software Asset Workspace</th><td style="vertical-align:top;" headers="d285417e609-desc d285417e664" class="stentry chdesc"> <ol class="ol" type="a" id="setup-servicenow-instance-for-ms365__ol_wjd_bjk_qtb"><li class="li">Navigate to <span class="ph menucascade"><span class="ph uicontrol">License operations</span> > <span class="ph uicontrol">User Subscriptions</span> > <span class="ph uicontrol">Direct integration profiles</span></span>.</li><li class="li">Select <span class="ph uicontrol">New</span>.</li><li class="li">Select <span class="ph uicontrol">Microsoft Dynamics 365 and Power Apps</span> from the drop-down list.</li><li class="li">Select <span class="ph uicontrol">Continue</span>.</li></ol> </td></tr></tbody></table><ul><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Display name</span> field, enter a name of your choice.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Under the <span class="ph uicontrol">Calculate Activity Subflow</span> tab in the <span class="ph uicontrol">Analyze user activity from</span> field, select the date since when you want to pull the activity.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Save</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Under the <span class="ph uicontrol">Download Subscription Subflow</span> tab, beside the <span class="ph uicontrol">Connection & Credential</span> field, select the preview (<img class="image icon" id="setup-servicenow-instance-for-ms365__image_m2c_frb_ybc" src="../image/preview-icon.png" alt="preview icon" />) icon.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Under the <span class="ph uicontrol">Please Enter the Credential Information</span> section, enter the values you received from <a class="xref" href="integrating-with-microsoft365.html#setup-ms-azure-ad" title="Set up Microsoft Azure Active Directory (AD).">Set up Microsoft Azure Active Directory</a>.</span> <ol type="a" class="ol substeps" id="setup-servicenow-instance-for-ms365__substeps_nxc_qkd_lqb"><li class="li substep"> <span class="ph cmd">In the <span class="ph uicontrol">Tenant ID</span> field, enter your Tenant ID.</span> </li><li class="li substep"> <span class="ph cmd">In the <span class="ph uicontrol">OAuth Client ID</span> field, enter the OAuth Client ID.</span> </li><li class="li substep"> <span class="ph cmd">In the <span class="ph uicontrol">OAuth Client Secret</span> field, enter the OAuth Client Secret key.</span> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Create and Get OAuth Token</span>.</span> <div class="itemgroup info"> <div class="note important"><span class="importanttitle">Important:</span> This step must be executed by a user with the Global administrator role in the <span class="ph">Microsoft</span> admin center.</div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">If you’re prompted to log in to your <span class="ph">Microsoft 365</span> account, enter your <span class="ph">Microsoft 365</span> credentials and log in to your <span class="ph">Microsoft 365</span> account.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Under the <span class="ph uicontrol">Calculate Activity Subflow</span> tab, beside the <span class="ph uicontrol">Connection & Credential</span> field, select the Preview (<img class="image" id="setup-servicenow-instance-for-ms365__image_qhr_5nf_hzb" src="../image/preview-icon.png" alt="Preview" />) icon.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Create New connection and credential alias</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the Create Connection and Credential window, perform the following.</span> <ol type="a" class="ol substeps" id="setup-servicenow-instance-for-ms365__substeps_pzy_4md_lqb"><li class="li substep substepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Connection URL</span> field, enter the connection URL.</span> <div class="itemgroup info">To fetch Connection URL, log in to the Microsoft Admin portal and navigate to <span class="ph menucascade"><span class="ph uicontrol">Admin Centers</span> > <span class="ph uicontrol">All admin centers</span> > <span class="ph uicontrol">Select Dynamics 365 apps</span> > <span class="ph uicontrol">Environments</span></span>. Select the environment you want to integrate with. The environment URL is the Connection URL.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">OAuth Client ID</span> field, enter the OAuth Client ID.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">OAuth Client Secret</span> field, enter the OAuth Client Secret key.</span> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Create and Get OAuth Token</span>.</span> <div class="itemgroup info"> <div class="note important"><span class="importanttitle">Important:</span> This step must be executed by a user with the Dynamics 365 administrator role in the <span class="ph">Microsoft</span> admin center.</div> </div> </li><li><div class="section postreq" id="setup-servicenow-instance-for-ms365__postreq_iyz_mvz_4qb"> <p class="p">After the integration connects, your <span class="ph">ServiceNow</span> instance automatically creates software models, reclamation rules, and software subscriptions that are refreshed daily.</p> <p class="p">If you want to set up multiple integration profiles with unique connections, create child aliases to manage different configurations and settings for each integration profile. For more information, see <a class="xref" href="../task/create-child-alias-saas.html" title="Create a child alias to set up multiple integration profiles with unique connections and manage different configurations for each integration profile.">Create a child alias to set up multiple integration profiles</a>.</p> <p class="p">Review all automatically generated reclamation rules to reclaim user subscriptions. For more information, see <a class="xref" href="../task/add-reclamation-rule-sub.html" title="Use reclamation rules to cancel user subscriptions that have limited to no activity.">Review a software reclamation rule</a>.</p> <div class="p">Create software entitlements for the automatically generated software models to track used software against owned software.<ul class="ul" id="setup-servicenow-instance-for-ms365__ul_cbz_vhr_sqb"><li class="li">For more information on creating software entitlements in the <span class="ph">Software Asset Management</span> Core UI, see <a class="xref" href="../task/track-software-rights.html" title="Create entitlements in the Software Asset Management application classic to record your license details and allocate purchased software rights to users or devices.">Create entitlements in Software Asset Management classic</a>.</li><li class="li">For more information on creating software entitlements in the Software Asset Workspace, see <a class="xref" href="../task/create-entitlements-workspace.html" title="Create entitlements in the Software Asset Workspace to enter your license details and allocate purchased software rights to users or devices.">Create entitlements in workspace</a>.</li><li class="li">For more information on creating software entitlements using the <span class="ph">Software Asset Management</span> Playbook, see <a class="xref" href="../task/guidedwalk-workspace.html" title="Use the guided walk-through playbook for a step-by-step process of creating entitlements.">Create entitlements using the guided walk-through</a>.</li></ul> </div> <div class="p">Reconciliation also runs on your subscriptions as a scheduled job or on-demand. You can view your reconciliation results in the <a class="xref" href="sam-license-workbench.html" title="Review reconciliation results in a simplified workbench view.">License Workbench</a> (<span class="ph">Software Asset Management</span> classic application) or the <a class="xref" href="sam-workspace-workbench.html" title="Use the license usage view as a single plane to understand the license position of all software products, remediate non compliance, view reconciliation results, view or add removal candidates and view Software Asset Management related reports.">License usage view</a> (Software Asset Workspace). Use these results to determine your license compliance position and to remediate any non-compliance.<ul class="ul" id="setup-servicenow-instance-for-ms365__ul_qgf_zhr_sqb"><li class="li">For more information on running reconciliation in the <span class="ph">Software Asset Management</span> classic application, see <a class="xref" href="../task/t_RunReconciliation.html" title="Reconciliation is run as a scheduled job (default is weekly), but you can also run reconciliation manually to reconcile software products in your environment on demand.">Run software reconciliation</a>.</li><li class="li">For more information on running reconciliation in the Software Asset Workspace, see <a class="xref" href="../task/run-recon-workspace.html" title="Reconciliation is run as a scheduled job (default is weekly), but you can also run reconciliation manually to reconcile software products in the Software Asset Workspace environment on-demand.">Run software reconciliation in the workspace</a>.</li></ul> </div> </div> </li></ul></colgroup></table></li></ol></div></div></div></body></html></div>