<h2>Integrating with Microsoft 365</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 365" /><meta name="abstract" content="Integrating your ServiceNow instance with the Microsoft 365 service enables you to track your software subscriptions and software usage to determine license compliance and act on optimization opportunities." /><meta name="description" content="Integrating your ServiceNow instance with the Microsoft 365 service enables you to track your software subscriptions and software usage to determine license compliance and act on optimization opportunities." /><meta name="DC.subject" content=", Software Asset Management, Microsoft Office 365" /><meta name="keywords" content=", Software Asset Management, Microsoft Office 365" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/microsoft-o365.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/it-asset-management.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/c_SoftwareAssetMgmt.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/sam-publisher-packs.html" /><meta name="DC.relation" scheme="URI" content="../../../product/software-asset-management2/concept/microsoft-publisher-pack.html" /><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="integrate-with-microsoft" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Integrating with Microsoft 365</title></head><body> <div class="nested0" id="integrate-with-microsoft"> <h1 class="title topictitle1" id="ariaid-title1">Integrating with <span class="ph">Microsoft 365</span></h1> <div class="body conbody"><p class="shortdesc">Integrating your <span class="ph">ServiceNow</span> instance with the <span class="ph">Microsoft 365</span> service enables you to track your software subscriptions and software usage to determine license compliance and act on optimization opportunities.</p> <p class="p">For more information about the <span class="ph">Microsoft 365</span> services, see <a class="xref" href="https://www.microsoft.com/en-us/microsoft-365/enterprise/compare-office-365-plans" target="_blank" rel="noopener noreferrer">Microsoft 365 plans</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="integrate-with-microsoft__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="d146739e74">Process</th><th class="entry cellrowborder" style="vertical-align:top;" id="d146739e77">Required user role in the <span class="ph">Microsoft 365</span> application</th><th class="entry cellrowborder" style="vertical-align:top;" id="d146739e83">Authentication scopes</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e74 ">Download subscriptions</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e77 ">Application developer</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e83 "> <ul class="ul" id="integrate-with-microsoft__ul_hhv_ypl_qbc"><li class="li">User.Read.All</li><li class="li">Organization.Read.All</li></ul> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e74 ">Pull user activity</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e77 "> <ul class="ul" id="integrate-with-microsoft__ul_n43_gbk_zbc"><li class="li">Power platform administrator</li><li class="li">Application developer</li></ul> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e83 ">Reports.Read.All</td></tr></tbody></table> </div> </div> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../product/software-asset-management2/concept/microsoft-o365.html" title="Create an integration with Microsoft 365 to download subscription information that is compared with software installations for compliance.">Microsoft 365 integration</a></div> </div> </div><div class="topic task nested1" id="register-microsoft-app"> <h2 class="title topictitle2" id="ariaid-title2">Register a <span class="ph">Microsoft Azure AD</span> application</h2> <div class="body taskbody"><p class="shortdesc">Register an application through the <span class="ph">Microsoft Azure</span> portal.</p> <div class="section prereq p"> <p class="p"><span class="ph">Microsoft Azure AD</span> Role required: Refer to the <a class="xref" href="integrate-with-microsoft.html" title="Integrating your ServiceNow instance with the Microsoft 365 service enables you to track your software subscriptions and software usage to determine license compliance and act on optimization opportunities.">Minimal user permissions</a> table.</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">From a web browser, open the <a class="xref" href="https://portal.azure.com/?Microsoft_AAD_RegisteredApps=true#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade" target="_blank" rel="noopener noreferrer">App registrations page</a> of the <span class="ph">Microsoft Azure</span> portal.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Log in using your global administrator credentials.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the App registrations page, select <span class="ph uicontrol">New registration</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the Name section of the Register an application form, enter a name for the application.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the Supported account types section, select <span class="ph uicontrol">Accounts in any organizational directory (Any Azure AD directory - Multitentant)</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Register</span>.</span> <div class="itemgroup stepresult">The application is registered and you are automatically redirected to the Overview page for the new application.</div> </li><li class="li step stepexpand"> <span class="ph cmd">On the Overview page, copy the values in the <span class="ph uicontrol">Application (client) ID</span> and <span class="ph uicontrol">Directory (tenant) ID</span> fields.</span> <div class="itemgroup info">Save them in a secure location for later use.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Generate a client secret for your application.</span> <ol type="a" class="ol substeps" id="register-microsoft-app__substeps_jvc_lpw_rqb"><li class="li substep substepexpand"> <span class="ph cmd">From the left navigation menu, navigate to <span class="ph menucascade"><span class="ph uicontrol">Manage</span> > <span class="ph uicontrol">Certificates & secrets</span></span>.</span> <div class="itemgroup stepresult">The Certificates & secrets page opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">In the Client secrets section, generate a client secret for the application by selecting <span class="ph uicontrol">New client secret</span>.</span> <div class="itemgroup stepresult">The Add a client secret dialog box opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">On the dialog box, fill in the fields.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="register-microsoft-app__table_mks_npw_rqb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 2. </span>Add a client secret dialog box</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d146739e396">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d146739e399">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e396 ">Description</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e399 ">Description of the client secret.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e396 ">Expires</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e399 ">Period of time after which you want the client secret to expire. The options are:<ul class="ul" id="register-microsoft-app__ul_nks_npw_rqb"><li class="li">In 1 year</li><li class="li">In 2 years</li><li class="li">Never</li></ul> </td></tr></tbody></table> </div> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Add</span>.</span> <div class="itemgroup stepresult">The dialog box closes and you return to the Certificates & secrets page.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">In the Client secrets section, copy the value in the <span class="ph uicontrol">VALUE</span> field for the newly generated client secret.</span> <div class="itemgroup info">Save this in a secure location for later use.</div> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">Specify the level of access that the application has to your protected resources.</span> <ol type="a" class="ol substeps" id="register-microsoft-app__substeps_apl_spw_rqb"><li class="li substep substepexpand"> <span class="ph cmd">From the left navigation menu, navigate to <span class="ph menucascade"><span class="ph uicontrol">Manage</span> > <span class="ph uicontrol">API permissions</span></span>.</span> <div class="itemgroup stepresult">The API permissions page opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Add a permission</span>.</span> <div class="itemgroup stepresult">The Request API permissions dialog box opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">On the dialog box, select the <span class="ph uicontrol">Microsoft APIs</span> tab.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">From the list of available <span class="ph">Microsoft</span> APIs, select <span class="ph uicontrol">Microsoft Graph</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">When prompted to select the types of permissions that the application requires, select <span class="ph uicontrol">Application permissions</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Under Select permissions, select the check boxes for the following permissions:</span> <div class="itemgroup info"> <ul class="ul" id="register-microsoft-app__ul_ncb_bqw_rqb"><li class="li">Reports.Read.All</li><li class="li">User.Read.All</li><li class="li">Organization.Read.All</li></ul> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Add permissions</span>.</span> <div class="itemgroup stepresult">The dialog box closes and you return to the API permissions page.</div> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">Grant admin consent for your application.</span> </li></ol> <div class="section postreq" id="register-microsoft-app__postreq_jl5_fmy_pqb"> <p class="p">After you successfully register and set up your application, remain in the <span class="ph">Microsoft Azure</span> portal if you need to enable your application to access Power BI service content and APIs.</p> </div> </div> </div> <div class="topic task nested1" id="enable-service-principal-authentication-microsoft"> <h2 class="title topictitle2" id="ariaid-title3">Enable service principal authentication for Power-BI read-only APIs</h2> <div class="body taskbody"><p class="shortdesc">Grant your application access to Power BI service content and APIs by enabling service principal authentication for Power BI read-only APIs. Power BI service content and APIs help optimize your <span class="ph">Microsoft 365</span> subscriptions, such as by downgrading subscriptions from Office 365 E5 to Office 365 E3.</p> <div class="section prereq p"> <p class="p"><span class="ph">Microsoft Azure AD</span> Role required: global administrator</p> <p class="p">Power BI Role required: global administrator or Power BI administrator</p> <div class="note"><span class="notetitle">Note:</span> This configuration enables <span class="ph">ServiceNow</span> <span class="ph">Software Asset Management</span> to get the usage information (Last usage time) for all Power BI Pro deployments across the Web and Desktop. <span class="ph">Software Asset Management</span> pulls the last activity date for Power BI deployments that are part of <span class="ph">Microsoft 365</span> subscriptions.</div> </div> <div class="section context" id="enable-service-principal-authentication-microsoft__context_pjr_yjy_pqb"> <p class="p">Service principal is an authentication method that allows your application to access secure <span class="ph">Microsoft Azure AD</span> resources, such as Power BI service content and APIs.</p> </div> <ol class="ol steps"><li class="li step stepexpand" id="enable-service-principal-authentication-microsoft__create-security-group"> <span class="ph cmd">Create a security group for service principal authentication.</span> <div class="itemgroup info">Security groups enable you to manage which users, devices, groups, and service principals can access shared resources. If you want to use an existing security group for service principal authentication, skip to <a class="xref" href="integrate-with-microsoft.html#enable-service-principal-authentication-microsoft__add-app-security-group">step 2</a>.</div> <ol type="a" class="ol substeps" id="enable-service-principal-authentication-microsoft__substeps_tkq_smy_pqb"><li class="li substep substepexpand"> <span class="ph cmd">On the page header of the <span class="ph">Microsoft Azure</span> portal, use the search bar to search for and select the <span class="ph uicontrol">Azure Active Directory</span> service.</span> <div class="itemgroup stepresult">The Overview page for the Azure Active Directory service opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">From the left navigation menu of the Azure Active Directory service, navigate to <span class="ph menucascade"><span class="ph uicontrol">Manage</span> > <span class="ph uicontrol">Groups</span></span>.</span> <div class="itemgroup stepresult">The <span class="ph menucascade"><span class="ph uicontrol">Groups</span> > <span class="ph uicontrol">All groups</span></span> page opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">On the All groups page, select <span class="ph uicontrol">New group</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">On the form, fill in the fields.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="enable-service-principal-authentication-microsoft__table_rj1_j5y_pqb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 3. </span>New Group form</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d146739e746">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d146739e749">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e746 ">Group type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e749 ">Group type. Set this field to <span class="ph uicontrol">Security</span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e746 ">Group name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e749 ">Name of the group.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e746 ">Group email address</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e749 ">Email address that is shared between all group members.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e746 ">Group description</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e749 ">Description of the group.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e746 ">Membership type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e749 ">Method in which members can be added to or removed from the group. The options are:<ul class="ul" id="enable-service-principal-authentication-microsoft__ul_kbl_kvy_pqb"><li class="li"><span class="ph uicontrol">Assigned</span>: Members must be added or removed manually.</li><li class="li"><span class="ph uicontrol">Dynamic user</span>: Members are added or removed automatically based on the dynamic group rules that you define. See <a class="xref" href="https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-create-rule" target="_blank" rel="noopener noreferrer">Create or update a dynamic group in Azure Active Directory</a> for more information on dynamic group rules.</li><li class="li"><span class="ph uicontrol">Dynamic device</span>: Devices are added or removed automatically based on the dynamic group rules that you define. See <a class="xref" href="https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-create-rule" target="_blank" rel="noopener noreferrer">Create or update a dynamic group in Azure Active Directory</a> for more information on dynamic group rules.</li></ul> </td></tr></tbody></table> </div> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Create</span>.</span> </li></ol> <div class="itemgroup stepresult">The security group is created and then you are redirected to the Overview page for the new group.</div> </li><li class="li step stepexpand" id="enable-service-principal-authentication-microsoft__add-app-security-group"> <span class="ph cmd">Add the application that you created in <a class="xref" href="integrate-with-microsoft.html#register-microsoft-app" title="Register an application through the Microsoft Azure portal.">Register a Microsoft Azure AD application</a> as a member of your security group.</span> <ol type="a" class="ol substeps" id="enable-service-principal-authentication-microsoft__substeps_hwz_zxy_pqb"><li class="li substep substepexpand"> <span class="ph cmd">If you did not create a security group in <a class="xref" href="integrate-with-microsoft.html#enable-service-principal-authentication-microsoft__create-security-group">step 1</a> and are using an existing security group instead, open your existing security group.</span> <div class="itemgroup info">If you created a security group in <a class="xref" href="integrate-with-microsoft.html#enable-service-principal-authentication-microsoft__create-security-group">step 1</a>, skip to <a class="xref" href="integrate-with-microsoft.html#enable-service-principal-authentication-microsoft__step-b">step b</a>.<ol class="ol" type="i" id="enable-service-principal-authentication-microsoft__ol_xsb_1cz_pqb"><li class="li">On the page header of the <span class="ph">Microsoft Azure</span> portal, use the search bar to search for and select the <span class="ph uicontrol">Azure Active Directory</span> service.<p class="p">The Overview page for the Azure Active Directory service opens.</p> </li><li class="li">From the left navigation menu of the Azure Active Directory service, navigate to <span class="ph menucascade"><span class="ph uicontrol">Manage</span> > <span class="ph uicontrol">Groups</span></span>.<p class="p">The <span class="ph menucascade"><span class="ph uicontrol">Groups</span> > <span class="ph uicontrol">All groups</span></span> page opens.</p> </li><li class="li">From the list of available groups, locate and select your existing security group.<p class="p">The Overview page for the security group opens.</p> </li></ol> </div> </li><li class="li substep substepexpand" id="enable-service-principal-authentication-microsoft__step-b"> <span class="ph cmd">From the left navigation menu of your security group, navigate to <span class="ph menucascade"><span class="ph uicontrol">Manage</span> > <span class="ph uicontrol">Members</span></span>.</span> <div class="itemgroup stepresult">The Members page opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">On the Members page, select <span class="ph uicontrol">Add members</span>.</span> <div class="itemgroup stepresult">The Add members dialog box opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">On the dialog box, search for and select the application that you created in <a class="xref" href="integrate-with-microsoft.html#register-microsoft-app" title="Register an application through the Microsoft Azure portal.">Register a Microsoft Azure AD application</a>.</span> <div class="itemgroup info"> <div class="note important"><span class="importanttitle">Important:</span> The application must not have any Power BI admin permissions set from the <span class="ph">Microsoft Azure</span> portal. You can verify your application permissions using the following steps:<ol class="ol" type="i" id="enable-service-principal-authentication-microsoft__ol_x42_shz_pqb"><li class="li">Log in to the <span class="ph">Microsoft Azure</span> portal using either your global administrator, application administrator, or cloud application administrator credentials.</li><li class="li">On the page header of the <span class="ph">Microsoft Azure</span> portal, use the search bar to search for and select the <span class="ph uicontrol">Azure Active Directory</span> service.<p class="p">The Overview page for the Azure Active Directory service opens.</p> </li><li class="li">From the left navigation menu of the Azure Active Directory service, navigate to <span class="ph menucascade"><span class="ph uicontrol">Manage</span> > <span class="ph uicontrol">Enterprise applications</span></span>.<p class="p">The Enterprise applications page opens.</p> </li><li class="li">From the list of available enterprise applications, locate and select your application.</li><li class="li">Select <span class="ph uicontrol">Permissions</span>.</li><li class="li">Verify that no Power BI admin-consent-required permissions are set on the application.</li></ol> </div> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Select</span>.</span> <div class="itemgroup stepresult">The application is added as a member of your security group.</div> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">Enable your security group to access read-only Power BI admin APIs.</span> <ol type="a" class="ol substeps" id="enable-service-principal-authentication-microsoft__substeps_fhg_b1w_rqb"><li class="li substep substepexpand"> <span class="ph cmd">In a new tab or web browser, open <a class="xref" href="https://app.powerbi.com/" target="_blank" rel="noopener noreferrer">Power BI</a>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Log in using either your global administrator or Power BI administrator credentials.</span> <div class="itemgroup stepresult">The Power BI portal opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">On the page header of the Power BI portal, select the Settings icon (<img class="image icon" id="enable-service-principal-authentication-microsoft__image_dnh_qbw_rqb" height="20" src="../image/gear-icon.png" alt="Settings icon." />) and then select <span class="ph uicontrol">Admin portal</span>.</span> <div class="itemgroup stepresult">The Power BI Admin portal opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">From the left navigation menu of the Admin portal, select <span class="ph uicontrol">Tenant settings</span>.</span> <div class="itemgroup stepresult">Your Power BI tenant settings open.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">In the Admin API settings section, expand the <span class="ph uicontrol">Allow service principals to use read-only Power BI admin APIs</span> setting.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Select the toggle button to enable the setting.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">When prompted, select the option to apply the setting to <span class="ph uicontrol">Specific security groups</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">In the corresponding text box, enter the name of your security group.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Apply</span>.</span> </li></ol> <div class="itemgroup stepresult">After you enable this setting through the Power BI Admin portal, any application permissions that you set from the <span class="ph">Microsoft Azure</span> portal are no longer effective. All application permissions must subsequently be set and managed through the Power BI Admin portal.</div> </li></ol> </div> </div> <div class="topic task nested1" id="conf-update-micro-admin"> <h2 class="title topictitle2" id="ariaid-title4">Configure updates on <span class="ph">Microsoft 365</span> Admin Center</h2> <div class="body taskbody"><p class="shortdesc">Prevent anonymous user information in <span class="ph">Microsoft 365</span> reports on activity to be imported to <span class="ph">ServiceNow</span>.</p> <div class="section prereq p"> <p class="p">Role required: admin</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Log in to <a class="xref" href="https://admin.microsoft.com/Adminportal/Home" target="_blank" rel="noopener noreferrer">Microsoft 365 admin center</a> by using your admin credentials.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">Settings</span> > <span class="ph uicontrol">Services</span> > <span class="ph uicontrol">Org settings</span> > <span class="ph uicontrol">Reports</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Deselect the <span class="ph uicontrol">Display concealed user, group, and site names in all reports</span> check box.</span> <div class="itemgroup info">For more information about the <span class="ph">Microsoft 365</span> reports showing anonymous user information, see <a class="xref" href="https://docs.microsoft.com/en-US/office365/troubleshoot/miscellaneous/reports-show-anonymous-user-name" target="_blank" rel="noopener noreferrer">Microsoft 365 reports show anonymous user names instead of actual user names</a>.</div> </li></ol> </div> </div> <div class="topic task nested1" id="set-up-microsoft-office-365"> <h2 class="title topictitle2" id="ariaid-title5">Create a <span class="ph">Microsoft 365</span> integration profile</h2> <div class="body taskbody"><p class="shortdesc">Create an integration profile to track software subscriptions and optimize stale licenses for the <span class="ph">Microsoft 365</span> service.</p> <div class="section prereq p" id="set-up-microsoft-office-365__prereq_aqj_zxd_b1b"> <p class="p"><span class="ph">ServiceNow</span> Role required: sam_integrator or admin</p> <div class="p">To integrate with <span class="ph">Microsoft 365</span>, activate the following plugins:<ul class="ul" id="set-up-microsoft-office-365__ul_tzh_rv1_p1c"><li class="li"><span class="ph">Software Asset Management Professional</span> for <span class="ph">Microsoft</span> plugin (com.snc.samp.microsoft)</li><li class="li"><span class="ph">Software Asset Management</span> - <span class="ph">SaaS License Management</span> (sn_sam_saas_int) plugin from the <a class="xref" href="https://store.servicenow.com/" target="_blank" rel="noopener noreferrer">ServiceNow Store</a><p class="p">For more information, see <a class="xref" href="../task/request-saas-license-management.html" title="Request the Software Asset Management - SaaS License Management plugin (sn_sam_saas_int) so that you can create and manage integrations with your SaaS and Single Sign-on (SSO) applications. You can use these integrations to track license usage and to reclaim unused licenses.">Request SaaS License Management</a>.</p> </li></ul> </div> </div> <div class="section context" id="set-up-microsoft-office-365__context_mpd_q1q_rbc"> <p class="p">If you’re using <span class="ph">Software Asset Workspace</span>, the option to create the direct integration profile in <span class="ph">Core UI</span> is inactive.</p> </div> <ol class="ol steps" id="set-up-microsoft-office-365__steps_knp_l3b_vrb"><li class="li step stepexpand"> <span class="ph cmd">From a web browser, open your <span class="ph">ServiceNow</span> instance.</span> <table border="1" frame="hsides" rules="rows" cellpadding="4" cellspacing="0" summary="" class="simpletable choicetable choicetableborder" id="set-up-microsoft-office-365__choicetable_w41_4c4_2cc"><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="d146739e1375-option">Interface</th><th class="stentry chdeschd" style="vertical-align:bottom;text-align:left;" id="d146739e1375-desc">Action</th></tr></thead><tbody><tr class="strow chrow"><th style="vertical-align:top;" headers="d146739e1375-option" id="d146739e1388" class="stentry choption">Core UI</th><td style="vertical-align:top;" headers="d146739e1375-desc d146739e1388" class="stentry chdesc">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></td></tr><tr class="strow chrow"><th style="vertical-align:top;" headers="d146739e1375-option" id="d146739e1411" class="stentry choption"><span class="ph">Software Asset Workspace</span></th><td style="vertical-align:top;" headers="d146739e1375-desc d146739e1411" class="stentry chdesc"> <ol class="ol" type="a" id="set-up-microsoft-office-365__ol_yhz_zml_bcc"><li class="li">Navigate to <span class="ph menucascade"><span class="ph uicontrol">Workspaces</span> > <span class="ph uicontrol">Software Asset Workspace</span> > <span class="ph uicontrol">License operations</span></span>.</li><li class="li">Under <span class="ph uicontrol">User subscription</span>, select <span class="ph uicontrol">Direct integration profiles</span>.</li></ol> </td></tr></tbody></table><ul><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">New</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Microsoft 365 Integration Profile</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the form, fill in the fields.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="set-up-microsoft-office-365__table_e5p_q3w_rqb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 4. </span>Integration Profile form</span></caption><colgroup><col style="width:50%" /><col style="width:50%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry nocellnorowborder" style="vertical-align:top;" id="d146739e1488">Field</th><th class="entry cell-norowborder" style="vertical-align:top;" id="d146739e1491">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d146739e1488 ">Display name</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d146739e1491 ">Name of the integration profile. For example, Microsoft 365 integration for <<var class="keyword varname">your-company</var>>.</td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d146739e1488 ">Client Id</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d146739e1491 ">Client ID of the application that you registered in the <span class="ph">Microsoft Azure</span> portal. Enter the application (client) ID that you copied in <a class="xref" href="integrate-with-microsoft.html#register-microsoft-app" title="Register an application through the Microsoft Azure portal.">Register a Microsoft Azure AD application</a>.</td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d146739e1488 ">Client secret</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d146739e1491 ">Client secret of the application that you registered in the Microsoft Azure portal. Enter the client secret that you copied in <a class="xref" href="integrate-with-microsoft.html#register-microsoft-app" title="Register an application through the Microsoft Azure portal.">Register a Microsoft Azure AD application</a>.</td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d146739e1488 ">Tenant name or Id</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d146739e1491 ">Globally unique identifier (GUID) of the application that you registered in the <span class="ph">Microsoft Azure</span> portal. Enter the directory (tenant) ID that you copied in <a class="xref" href="integrate-with-microsoft.html#register-microsoft-app" title="Register an application through the Microsoft Azure portal.">Register a Microsoft Azure AD application</a>.<div class="note warning"><span class="warningtitle">Warning:</span> When entering the directory (tenant) ID, do not add any additional extensions to the ID. Enter the ID exactly as it was copied in <a class="xref" href="integrate-with-microsoft.html#register-microsoft-app" title="Register an application through the Microsoft Azure portal.">Register a Microsoft Azure AD application</a>.</div> </td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d146739e1488 ">REST message</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d146739e1491 ">Message that enables you to send requests to a REST web service endpoint.</td></tr><tr class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d146739e1488 ">Profile type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d146739e1491 ">Type of integration profile. This field is automatically set to <span class="ph uicontrol">Microsoft 365</span>.</td></tr></tbody></table> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Submit</span>.</span> </li><li class="li step stepexpand"><strong>Optional: </strong> <span class="ph cmd">Check the status of the user subscription job by navigating to <span class="ph menucascade"><span class="ph uicontrol">Software Asset</span> > <span class="ph uicontrol">Administration</span> > <span class="ph uicontrol">Job Results</span></span>.</span> </li><li><div class="section postreq" id="set-up-microsoft-office-365__postreq_qfs_hd4_33b"> <p class="p">When you create an integration profile, a reclamation rule is automatically created for the software. It's important that you review the reclamation rule to ensure that it meets your specifications. You can view all automatically generated reclamation rules for Office 365 by navigating to <span class="ph menucascade"><span class="ph uicontrol">Software Asset</span> > <span class="ph uicontrol">Administration</span> > <span class="ph uicontrol">Reclamation Rules</span></span>. Reclamation rules are applied based on the <span class="ph">Microsoft</span> System Center Configuration Management (SCCM) usage data that is pulled through the <span class="ph">Microsoft</span> SCCM usage integration. For more information on these reclamation rules, see <a class="xref" href="../task/create-reclamation-rule-sccm.html" title="To import your Microsoft SCCM data, create a reclamation rule for the product that you want the usage information for.">Create a reclamation rule to import Microsoft SCCM usage data</a>.</p> <div class="note"><span class="notetitle">Note:</span> <span class="ph">ServiceNow</span> automatically creates one default reclamation rule for Office 365. You can also update the Last activity threshold field under the Subscription Usage Condition tab.</div> </div> <div class="topic task nested1" id="ver-o365-info"> <h2 class="title topictitle2" id="ariaid-title6">Determine and verify <span class="ph">Microsoft 365</span> subscription information in your <span class="ph">ServiceNow</span> instance</h2> <div class="body taskbody"><p class="shortdesc">Determine the exact software subscription information to be pulled from <span class="ph">Microsoft 365</span> admin center and verify if complete subscription information is pulled accurately to <span class="ph">ServiceNow</span>.</p> <div class="section prereq p"> <p class="p">Role required: sam_admin</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Filter with the <span class="ph">Microsoft 365</span> integration profile you created to determine the exact software subscription information to be pulled from <span class="ph">Microsoft 365</span> admin center to <span class="ph">ServiceNow</span>.</span> <div class="itemgroup info">This subscription includes all subscriptions available on the <span class="ph">Microsoft 365</span> admin center.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Verify with the <span class="ph">Microsoft 365</span> admin if complete subscription information is pulled accurately to <span class="ph">ServiceNow</span>.</span> <div class="itemgroup info"> <div class="note"><span class="notetitle">Note:</span> <p class="p"><span class="ph">Software Asset Management</span> pulls the last activity date for <span class="ph">Microsoft 365</span> products using a combination of SCCM integration and <span class="ph">Microsoft 365</span> integration.</p> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">If your <span class="ph">Microsoft 365</span> subscription data isn’t getting pulled into <span class="ph">Software Asset Management</span>, verify your integration setup:</span> <ol type="a" class="ol substeps" id="ver-o365-info__substeps_env_4zr_trb"><li class="li substep substepexpand"> <span class="ph cmd">On the Integration Profile form, open the REST message record by selecting the Preview icon (<img class="image icon" id="ver-o365-info__image_l1k_yww_rqb" height="20" src="../image/preview-icon.png" alt="Preview icon." />) next to the <span class="ph uicontrol">REST message</span> field and then selecting <span class="ph uicontrol">Open Record</span> in the record preview.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">On the Rest Message form, select the <span class="ph uicontrol">Get OAuth Token</span> related link.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">On the OAuth flow verification dialog box, view the status of the OAuth flow to determine whether your integration is set up correctly.</span> <div class="itemgroup info"> <ul class="ul" id="ver-o365-info__ul_wjv_y1x_rqb"><li class="li">If the <samp class="ph systemoutput">OAuth token flow completed successfully</samp> message appears, your integration is set up correctly.</li><li class="li">If the <samp class="ph systemoutput">OAuth flow failed</samp> message appears, your integration isn’t set up correctly. Use the information in this message to identify the errors in your integration setup.</li></ul> </div> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">If your Power BI usage isn’t getting pulled into <span class="ph">Software Asset Management</span>, verify the status of your Power BI API connection:</span> <ol type="a" class="ol substeps" id="ver-o365-info__substeps_llw_xzr_trb"><li class="li substep substepexpand"> <span class="ph cmd">On the Integration Profile form, right-click the form header.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Show XML</span>.</span> <div class="itemgroup info"> <p class="p">An XML file opens in a new window.</p> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Under <span class="ph menucascade"><span class="ph uicontrol"><xml></span> > <span class="ph uicontrol"><samp_sw_subscription_profile></span> > <span class="ph uicontrol"><custom_properties></span></span>, view the <span class="keyword parmname">powerBIStatus</span> property to determine the status of your Power BI API connection.</span> <div class="itemgroup info"> <ul class="ul" id="ver-o365-info__ul_zvc_vj1_wqb"><li class="li">If the <span class="keyword parmname">powerBIStatus</span> property is set to <span class="ph uicontrol">success</span>, the Power BI API connection was successful.</li><li class="li">If the <span class="keyword parmname">powerBIStatus</span> property is set to <span class="ph uicontrol">failed</span>, the Power BI API connection wasn’t successful. Verify that you’ve followed all the integration setup steps correctly. You can also check your logs for more information about any errors in your integration setup.</li></ul> </div> </li></ol> </li></ol> </div> </div> <div class="topic concept nested1" id="o365-usage-activity"> <h2 class="title topictitle2" id="ariaid-title7">Evaluating software usage activity</h2> <div class="body conbody"><p class="shortdesc">Evaluating software usage activity through <span class="ph">Software Asset Management</span> enables you to optimize your <span class="ph">Microsoft 365</span> plan usage and helps determine the optimized plans for your <span class="ph">Microsoft 365</span> subscription. <span class="ph">Software Asset Management</span> generates a removal candidate for the current subscription that displays an optimized subscription on the License workbench recommending you to shift from a costly subscription plan to an optimized one.</p> <p class="p">After the <span class="ph">Microsoft 365</span> integration connects, you can evaluate the information in the <span class="ph uicontrol">Software Usages</span> (samp_sw_usage) table to determine the usage data for individual software products provided within the subscription. The <span class="ph uicontrol">SAM - Collect Microsoft 365 Usage</span> job collects the usage data daily and the <span class="ph uicontrol">SAM - Create New Reclamation Candidates for Office 365 Integration</span> generates removal candidates monthly.</p> <p class="p">The Software Usages table provides information on the date the software was last used and the usage type of the activities performed by users: Desktop, Web, Mobile, or cumulative across platforms. This information can help you decide on the optimized plan for products within your <span class="ph">Microsoft 365</span> subscription.</p> </div> </div> <div class="topic task nested1" id="det-comp-opt-results"> <h2 class="title topictitle2" id="ariaid-title8">Evaluate <span class="ph">Microsoft 365</span> compliance and optimization results</h2> <div class="body taskbody"><p class="shortdesc">Evaluate <span class="ph">Microsoft 365</span> compliance and optimization results to find actual and potential cost savings and recommended licensing optimizations.</p> <div class="section prereq p" id="det-comp-opt-results__prereq_n32_fht_rrb"> <p class="p">Role required: sam_admin or sam_user</p> <p class="p">The discovery of <span class="ph">Microsoft 365</span> must be complete to evaluate the software compliance. For more information about using Discovery and <span class="ph">Microsoft</span> SCCM together, see <a class="xref" href="../product/discovery/concept/c_DiscoveryAndSCCMTogether.dita/c_DiscoveryAndSCCMTogether.html" target="_blank" rel="noopener noreferrer">Discovery and SCCM together</a>.</p> <p class="p">The usage of <span class="ph">Microsoft 365</span> plans must be available from both <span class="ph">Microsoft</span> certified APIs and <span class="ph">Microsoft</span> SCCM to evaluate the software optimization.</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">Software Asset Workspace</span> > <span class="ph uicontrol">License operations</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the left pane, select <span class="ph menucascade"><span class="ph uicontrol">Licensing</span> > <span class="ph uicontrol">Software entitlements</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">New</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Create entitlements for <span class="ph">Microsoft 365</span> by selecting the correct Publisher Part Number (PPN) to verify compliance.</span> <div class="itemgroup info">For more information about creating entitlements, 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>.<div class="note"><span class="notetitle">Note:</span> Ensure that the License metric value is User Subscription.</div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">License usage</span></span>in the left pane.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select the <span class="ph uicontrol">Reconciliation</span> tab.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Run reconciliation</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">View compliance analysis results in <a class="xref" href="sam-saas-subscription-dash.html" title="View compliance analysis results related to Microsoft Office 365 and Adobe Cloud License Management in Software Asset Management classic.">Office 365 & Adobe Cloud dashboard in Software Asset Management classic</a> and <a class="xref" href="../reference/saas-dashboard-workspace.html" title="View all SaaS related analytics for pure SaaS, Microsoft Office 365 and Adobe Cloud in the SaaS overview dashboard in the Software asset analytics view.">SaaS overview dashboard in workspace</a>.</span> <div class="itemgroup info">For more information about running software reconciliation, 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> and <a class="xref" href="../product/software-asset-management2/task/t_RunReconciliationSAMF.dita/t_RunReconciliationSAMF.html" target="_blank" rel="noopener noreferrer">Run <span class="ph">Software Asset Management Foundation plugin</span> software reconciliation in classic</a>.</div> </li><li class="li step stepexpand"> <span class="ph cmd">View all optimized plans for <span class="ph">Microsoft 365</span> subscription on the <a class="xref" href="../reference/optimization-dashboard-workspace.html" title="Use the Optimization and savings dashboard to view actual and potential cost savings for your software assets. In addition, view the recommended licensing optimizations for third-party software publishers, including Microsoft, Red Hat, and SAP. Use this information to downgrade or reclaim licenses so that you can optimize your licensing costs.">Optimization and savings dashboard in workspace</a>.</span> </li></ol> </div> </div> <div class="topic task nested1" id="update-o365-gov-plans"> <h2 class="title topictitle2" id="ariaid-title9">Update REST and OAuth endpoints for <span class="ph">Microsoft Office 365</span> Government plans</h2> <div class="body taskbody"><p class="shortdesc">Change the endpoints of the REST message and OAuth application on your <span class="ph">ServiceNow</span> subscription profile so that you can use your subscriptions.</p> <div class="section prereq p" id="update-o365-gov-plans__prereq_w5t_3xl_dsb"> <p class="p">Role required: sam_admin</p> </div> <div class="section context" id="update-o365-gov-plans__context_jkf_tdm_fsb"> <p class="p">The <span class="ph">Now Platform®</span> supports <span class="ph">Microsoft Office 365</span> Government plans, which provide all the features and capabilities of <span class="ph">Microsoft 365</span> services in a segmented government cloud community that enables organizations to meet U.S. compliance and security standards.</p> <p class="p">For more information on <span class="ph">Microsoft Office 365</span> Government plans, see <a class="xref" href="https://docs.microsoft.com/en-us/office365/servicedescriptions/office-365-platform-service-description/office-365-us-government/office-365-us-government" target="_blank" rel="noopener noreferrer">Office 365 Government</a>.</p> </div> <ol class="ol steps" id="update-o365-gov-plans__steps_kkf_tdm_fsb"><li class="li step stepexpand"> <span class="ph cmd">From your <span class="ph">ServiceNow</span> instance, 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>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select the <span class="ph">Microsoft 365</span> integration profile that you want to update.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the Integration Profile record, select the Preview this record icon (<img class="image icon" id="update-o365-gov-plans__image_lrv_tk4_cbc" height="20" src="../image/preview-icon.png" alt="Preview this record icon." />) next to the <span class="ph uicontrol">REST message</span> field.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the record preview, select <span class="ph uicontrol">Open Record</span>.</span> <div class="itemgroup stepresult">The REST Message record opens.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Update the REST message endpoints on your <span class="ph">Microsoft 365</span> integration profile.</span> <div class="itemgroup info"> <p class="p">REST message endpoints enable you to retrieve usage data from your <span class="ph">Microsoft 365</span> applications and services.</p> </div> <ol type="a" class="ol substeps" id="update-o365-gov-plans__substeps_qkq_yr4_cbc"><li class="li substep substepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">HTTP Methods</span> related list, update the REST message endpoints based on your needs.</span> <div class="itemgroup info"> <p class="p"><span class="ph">Microsoft</span> provides various endpoints for <span class="ph">Microsoft Office 365</span> Government plans. For more information on the available endpoints, see <a class="xref" href="https://docs.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-u-s-government-gcc-high-endpoints?view=o365-worldwide" target="_blank" rel="noopener noreferrer">Office 365 U.S. Government GCC High endpoints</a>.</p> <div class="p"> <div class="note important"><span class="importanttitle">Important:</span> You must change the .com to .us in the URL of each endpoint. For example, you must change https://graph.microsoft.com/v1.0/reports to https://graph.microsoft.us/v1.0/reports.</div> </div> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Save</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Update the OAuth entity scope for the <span class="ph uicontrol">GET PowerBI Usage</span> endpoint.</span> <div class="itemgroup info">The OAuth entity scope specifies the level of access that users have to your protected resources.<ol class="ol" type="i" id="update-o365-gov-plans__ol_vr1_2pz_dbc"><li class="li"> <p class="p">Select the <span class="ph uicontrol">GET PowerBI Usage</span> endpoint.</p> <p class="p">The HTTP Method record opens.</p> </li><li class="li">In the Authentication section of the HTTP Method record, select the Preview this record icon (<img class="image icon" id="update-o365-gov-plans__image_qfs_gpz_dbc" height="20" src="../image/preview-icon.png" alt="Preview this record icon." />) next to the <span class="ph uicontrol">OAuth profile</span> field.</li><li class="li"> <p class="p">On the record preview, select <span class="ph uicontrol">Open Record</span>.</p> <p class="p">The OAuth Entity Profile record opens.</p> </li><li class="li">In the OAuth Entity Profile Scopes list, update the <span class="ph uicontrol">OAuth scope</span> field of the <span class="ph uicontrol">PowerBIPermissions</span> OAuth entity scope with the backend API URL that you are using for <span class="ph">Microsoft</span> Power BI.<div class="note"><span class="notetitle">Note:</span> <span class="ph">Microsoft</span> supports various backend API URLs for Power BI. For more information on the available URLs, see <a class="xref" href="https://learn.microsoft.com/en-us/power-bi/enterprise/service-govus-overview" target="_blank" rel="noopener noreferrer">Power BI for US Government</a>.</div> </li><li class="li"> <p class="p">Select <span class="ph uicontrol">Update</span>.</p> <p class="p">The OAuth Entity Profile record closes and you automatically return to the REST Message record.</p> </li></ol> </div> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">Update the OAuth application endpoint on your <span class="ph">Microsoft 365</span> integration profile.</span> <div class="itemgroup info">The OAuth application endpoint enables your <span class="ph">ServiceNow</span> instance to access your <span class="ph">Microsoft 365</span> subscription data.</div> <ol type="a" class="ol substeps" id="update-o365-gov-plans__substeps_yff_pp4_cbc"><li class="li substep substepexpand"> <span class="ph cmd">In the Authentication section of the REST Message record, select the Preview this record icon (<img class="image icon" id="update-o365-gov-plans__image_pqh_sp4_cbc" height="20" src="../image/preview-icon.png" alt="Preview this record icon." />) next to the <span class="ph uicontrol">OAuth profile</span> field.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">On the record preview, select <span class="ph uicontrol">Open Record</span>.</span> <div class="itemgroup stepresult">The OAuth Entity Profile record opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">In the OAuth Entity Profile Scopes list, change the .com to .us in the URL that is listed in the <span class="ph uicontrol">OAuth scope</span> field of the <span class="ph uicontrol">Permissions</span> OAuth entity scope.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Select the Preview this record icon (<img class="image icon" id="update-o365-gov-plans__image_qpj_kr4_cbc" height="20" src="../image/preview-icon.png" alt="Preview this record icon." />) next to the <span class="ph uicontrol">OAuth provider</span> field.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">On the record preview, select <span class="ph uicontrol">Open Record</span>.</span> <div class="itemgroup stepresult">The Application Registries record opens.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">Select the Edit URL icon (<img class="image icon" id="update-o365-gov-plans__image_qp4_nr4_cbc" height="20" src="../../../common/image/icon-lock.png" alt="Edit URL icon." />) next to the <span class="ph uicontrol">Token URL</span> field.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">In the URL, change the .com to .us.</span> <div class="itemgroup info">For example, change https://login.microsoftonline.com to https://login.microsoftonline.us.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">Select the Lock URL icon (<img class="image icon" id="update-o365-gov-plans__image_rp4_nr4_cbc" height="20" src="../image/unlock-icon.png" alt="Lock URL icon." />).</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Update</span>.</span> </li></ol> </li></ol> </div> </div> </li></ul></colgroup></table></li></ol></div></div></div></body></html></div>