Configure SharePoint API permissions for your External Content Q&A Genius Results OAuth 2.0 application

  • Release version: Yokohama
  • Updated November 5, 2025
  • 1 minute to read
  • Add the AllSites.FullControl SharePoint API delegated permission to your External Q&A Genius Results OAuth 2.0 application in Microsoft Azure portal and grant admin consent to allow the application to access this permission. The OAuth 2.0 application for External Q&A Genius Results requires the delegated permission to search your Microsoft SharePoint Online sites.

    Before you begin

    The Now Assist in AI Search ServiceNow® Store application must be installed on your instance. For details on installing this application, see Install Now Assist in AI Search.

    You need to have an OAuth 2.0 application configured in Microsoft Azure portal for External Content Q&A Genius Results. For details on this procedure, see Configure OAuth application in Microsoft Azure.

    You must have permissions to change the OAuth 2.0 application's settings in Microsoft Azure portal.

    Role required: admin

    Procedure

    1. Access your OAuth 2.0 application's settings in Microsoft Azure portal.
      1. Log in to https://portal.azure.com/.
      2. In the Azure services section, select App registrations.
        Microsoft Azure portal with App registrations service highlighted.
      3. Select All applications or Owned applications.
        Microsoft Azure portal with All applications and Owned applications categories highlighted.
      4. In the search field, enter the name or application (client) ID of the OAuth 2.0 application you created for External Content Q&A Genius Results, then select that application's display name from the list of results.
        Microsoft Azure portal with search term and matching application display name highlighted.

        To learn how to configure an OAuth 2.0 application for External Content Q&A Genius Results, see Configure OAuth application in Microsoft Azure.

    2. Add an AllSites.FullControl SharePoint API delegated permission to your OAuth 2.0 application.
      1. In the menu, select Manage > API permissions.
        Microsoft Azure portal application page with API permissions menu item highlighted.
      2. Under the Configured permissions heading, select Add a permission.
        Microsoft Azure portal application page with Add a permission link highlighted.
      3. In the Request API permissions window's Select an API section, select Microsoft APIs, then select the SharePoint API.
        Microsoft Azure portal Request API permissions page with Microsoft APIs category highlighted.
        Microsoft Azure portal Request API permissions page with SharePoint API highlighted.
      4. When prompted, select Delegated permissions as the type of permission to add.
        Microsoft Azure portal Request API permissions page with delegated permissions type highlighted.
      5. In the Select permissions section, select AllSites > AllSites.FullControl, then select Add permissions.
        Microsoft Azure portal Request API permissions page with AllSites category, AllSites.FullControl selected permission, and Add permissions button highlighted.
        The new AllSites.FullControl SharePoint API permission appears in the list of configured permissions with status Not granted for ServiceNow.
      6. Under the Configured permissions heading, select Grant admin consent for ServiceNow.
        Microsoft Azure portal application page with Grant admin consent for ServiceNow link highlighted.
      7. In the Grant admin consent confirmation dialog box, select Yes.
        Microsoft Azure portal application page with Grant admin consent confirmation dialog box's Yes button highlighted.
        The AllSites.FullControl SharePoint API permission's status changes to Granted for ServiceNow.

    What to do next

    Configure the OAuth 2.0 settings in your ServiceNow AI Platform® instance that are needed for External Content Q&A Genius Results. For details on this procedure, see Configure OAuth settings for External Content Q&A Genius Results.