Add or Edit a Source Using One of the Available Connectors
- Amazon S3 Source
- Box (Personal) Source
- Box Business Source
- Confluence Cloud Source
- Confluence Self-Hosted Source
- Database Source
- Dropbox (Personal) Source
- Dropbox Business Source
- Exchange Enterprise Source
- Exchange Online (Personal) Source
- File System Source
- Generic REST API Source
- Gmail for Work Source
- Gmail (Personal) Source
- Google Drive (Personal) Source
- Google Drive for Work Source
- Jira Software Cloud Source
- Jira Software Self-Hosted Source
- Jive Cloud Source
- Jive Server Source
- Khoros Community Source
- Microsoft Dynamics 365 Source
- OneDrive for Business Source
- OTCS Source
- Push Source
- RSS Source
- Salesforce Source
- ServiceNow Source
- SharePoint Online Source
- SharePoint Online Legacy Source
- SharePoint Server Source
- Sitecore Source
- Sitemap Source
- Twitter Source
- Web Source
- YouTube Source
- Zendesk Source
Add or Edit a SharePoint Online Source
Members of the Administrators and Content Managers built-in groups can include SharePoint Online content and make it searchable. In a Coveo-powered search interface, the source content is accessible to either everyone, the source creator only, or specific users as determined by source permissions (see Content Security). By default, a SharePoint Online source starts a refresh every hour and a rescan every week to retrieve SharePoint Online item changes (addition, modification, or deletion) (see Edit a Source Schedule). A source rescan or rebuild is necessary to capture deleted user profiles.
Following a refresh operation, deleted discussion lists are excluded from your Coveo Cloud SharePoint Online source content, but replies to the original discussion message will only be excluded following the next rescan operation. This is a known issue caused by a limitation of Microsoft SharePoint Online.
Source Features Summary
|SharePoint Online version||Latest cloud version|
|Searchable content types||Sites, sub-sites, user profiles, personal websites, lists, list items, list item attachments, document libraries, document sets, documents, web parts, and microblog posts and replies.|
Rescan or rebuild is required to retrieve deleted user profiles.
|Content security options||Determined by source permissions|
SharePoint Online Account With Appropriate Roles and Permissions
When you want to include SharePoint Online content, you must create a specific SharePoint Online account that has access to the content you want to make searchable and that will be only used for the source. If you allow Coveo to retrieve your content through your personal account, you’ll need to also update the source access token each time you change the account password to prevent authentication errors (see Update Access Token).
Access your Azure Portal with an administrator account.
Role Justification Application Administrator
This role allows the user to consent to give Coveo's Azure Active Directory Application the admin permissions it needs (see Azure Application Permissions).
If you don't want the crawling account to have that role, you need to consent with a user that has the Global Admin role once before login with the crawling account (see Admin Consent).
This role is needed for the site URLs autodiscovery. This is used when you select All sites (see Content to Include).
If you don't want the crawling account to have that role, you need to use Specific items (see Content to Include).
Ensure that multi-factor authentication (MFA) is deactivated for this account, as it prevents Coveo Cloud from connecting to your SharePoint Online tenant with the following error:
'https://login.microsoftonline.com/common/oauth2/token' has failed. Http status: 400 - Bad Request.
Access your SharePoint Online tenant with an account that has the SharePoint Administrator role, and then grant appropriate SharePoint Online permissions to the account you created before to ensure it has access to all the content that you want to include.
The following table presents the minimal required permissions that the account must have to perform the specified action. If you specified sites to crawl and you did not grant the minimal permissions, the crawler will stop. If you selected “All sites”, it will skip sites that the crawling account can’t see.
Action to perform Minimal required permission Content (without security indexing)
We recommend that you be a site admin for every sites you want to crawl to avoid permission misconfiguration. If you don't want the crawling account to be a site admin, it requires the following permission levels on every sites (see Understanding permission levels in SharePoint):
View Pages - View pages in a Web site.
Open - Allows users to open a Web site, list, or folder in order to access items inside that container.
View Items - View items in lists and documents in document libraries.
Open Items - View the source of documents with server-side file handlers.
View Versions - View past versions of a list item or document.
Content (with security indexing)
Site admin for all SharePoint Online sites that need to be crawled (see Manage site admins in SharePoint Online).
Personal site and user profile
Owner of all personal sites (see Adding the Personal Sites Owner Permissions for SharePoint Online).
DNS Records Configuration for Office 365
Log in to Office 365 admin center with an administrator account.
In the navigation bar on the left, select Domains.
In the Manage domains page:
Under Domain Name, select your corporate domain (not
company.onmicrosoft.com) check box.
Next to the Action column, under the [domain name], click Domain settings.
On the [domain name] page, in the DNS records section, take note of the DNS records.
Configure these DNS records in your DNS host provider (see Create DNS records for Office 365 when you manage your DNS records).
On the [domain name] page, in the DNS records section, click the Troubleshoot domain link to ensure that the DNS records were correctly configured.
Azure Application Permissions
A SharePoint Online source uses the OAuth 2.0 authorization protocol. To work with Microsoft APIs (CSOM and REST), Coveo Cloud must authenticate via an Azure Active Directory Application. Coveo Cloud obtains “delegated” permissions, i.e., when a user logs in, the Coveo Cloud Platform receives an access token referring to this specific user.
When you create a SharePoint Online source, an Azure application is created in your Azure tenant (see Understand user and admin consent), and you must grant permissions to this application. The access token is then limited to these permissions, which are necessary to successfully crawl SharePoint Online. All following access token permissions needs Admin Consent. As a result, for a user to authenticate through the Coveo Cloud Azure Active Directory application, they must have the Application administrator role, or a user with the Global Admin role must have given consent (see Admin Consent).
The permissions automatically granted to the application are the following:
|Have full control of all sites (
Coveo Cloud requires this permission to retrieve permissions of crawled items. Microsoft doesn't offer enough granularity for Coveo to use a permission with fewer privileges.
Some API calls require Coveo to have the
Read user profiles (
Coveo Cloud requires this permission mainly to retrieve user profiles and index them as items if you select this option (see User profiles).
|Read directory data (
Coveo Cloud requires this permission to fetch:
|Read all groups (
Coveo Cloud uses this permission to obtain the ID of a group (represents an Azure Active Directory (Azure AD) group, which can be an Office 365 group, or a security group), and then a list of the group members (see Get Group and List members).
Check Consent of behalf of your organization.
You’ll be redirected to the Add/Edit a SharePoint Online Source panel. Close it and do the steps in Add or Edit a SharePoint Online Source with your crawling account.
Add or Edit a SharePoint Online Source
Ensure that your SharePoint Online instance meets the source requirements (see Requirements).
If not already in the Add/Edit a SharePoint Online Source panel, access the panel:
To add a source:
In the main menu, under Content, select Sources > Add source button > SharePoint > SharePoint Online.
In the Sign in to SharePoint Online window that appears, enter your SharePoint Online tenant name, and then click Sign In.
You can also enter your full SharePoint Online tenant address.
Enter the Email and Password of the limited administrator account that you created earlier and that has access to the desired SharePoint Online content, and then click Sign in (see SharePoint Online Account With Appropriate Roles and Permissions).
Starting March 25, 2019, when you create two SharePoint Online sources retrieving content the same tenant, they share their security providers, which increases the speed of the security identities refresh operation (see Refresh a Security Identity Provider). You must however use the same limited administrator credentials for both sources.
Click Accept to grant the required permissions to the Coveo Cloud application.
To edit a source, in the main menu, under Content, select Sources, and then double-click the desired source.
In the Configuration tab, enter appropriate values for the available parameters:
A descriptive name for your source under 255 characters (not already in use for another source in this organization).
Character optical recognition (OCR)
Check this box if you want Coveo Cloud to extract text from image files or PDF files containing images (see Enable Optical Character Recognition). OCR-extracted text is processed as item data, meaning that it’s fully searchable and will appear in the item Quick View (see Search Result Quick View).
When adding a source, if you have more than one logical (non-Elasticsearch) index in your organization, select the index in which the retrieved content will be stored (see Leverage Many Coveo Indexes). If your organization only has one index, this drop-down menu isn’t visible and you have no decision to make.
In the Content to Include section, select the content to make searchable. Your options are:
All sites that the crawling account is allowed to access will be searchable (see SharePoint Online Account With Appropriate Roles and Permissions).
If you choose to make only certain items searchable, see SharePoint Online Account With Appropriate Roles and Permissions to set the required permissions on the crawling account. In the URL box, enter URLs corresponding to the desired sites, lists, websites, and subwebsites. Each URL must include the protocol and tenant name.
For a specific site:
For a specific website:
For a specific list:
A specific folder in a list isn’t supported.
If you select this option, see Additional content.
Select to include SharePoint Online user profiles.
To prevent performance issues, we recommend that you create a separate source for user profiles only.
Select to include SharePoint Online personal sites.
To prevent performance issues, we recommend that you create a separate source for personal sites only.
Select to include list folders and document sets.
Select to include unapproved items from lists where moderation is activated. See Indexing Unapproved Items for details. In lists where moderation is deactivated, Coveo Cloud indexes the latest version of an item, regardless of whether this item is a draft or not. In such a case, this option doesn’t apply.
In the Content Security tab, select who will be able to access the source items through a Coveo-powered search interface. For details on this parameter, see Content Security.
In the Access tab, determine whether each group and API key can view or edit the source configuration (see Understanding Resource Access):
In the Access Level column, select View or Edit for each available group.
On the left-hand side of the tab, if available, click Groups or API Keys to switch lists.
If you remove the Edit access level from all the groups of which you’re a member, you won’t be able to edit the source again after saving. Only administrators and members of other groups that have Edit access on this resource will be able to do so. To keep your ability to edit this resource, you must grant the Edit access level to at least one of your groups.
Optionally, consider editing or adding mappings (see Adding and Managing Source Mappings).
You can only manage mapping rules once you build the source (see Refresh, Rescan, or Rebuild Sources).
Complete your source addition or edition:
Click Add Source/Save when you want to save your source configuration changes without starting a build/rebuild, such as when you know you want to do other changes soon.
On the Sources page, you must click Start initial build or Start required rebuild in the source Status column to add the source content or make your changes effective, respectively.
Click Add and Build Source/Save and Rebuild Source when you’re done editing the source and want to make changes effective.
Once the source is built or rebuilt, you can review its content in the Content Browser (see Inspect Items With the Content Browser).
If you selected Specific Items and User Profiles in the Content to Include section, some additional items will appear in the Content Browser. To retrieve user profiles, Coveo must dig through your SharePoint Online instance, including your My Site host site collection and the documents it contains. The items it encounters in the process are retrieved as well and therefore appear in the Content Browser.
Review your source update schedule and optionally change it so that it better fits your needs (see Edit a Source Schedule). By default, your content is refreshed every hour and rescanned every week.