When using Salesforce Files Connect with a SharePoint Online (Office 365) external data source, Chatter users may encounter one of the following errors:
These errors occur even when the SharePoint external data source appears as Authenticated in the Salesforce External Data Sources setup page.
The Permission Request XML in the SharePoint Online app registration contains an incorrect Scope value. A common mistake is entering the company's SharePoint domain name as the Scope, instead of one of the three valid SharePoint permission scope values.
Additionally, verify that the External Data Source in Salesforce Setup that corresponds to the SharePoint repository has the correct Site URL configured. See External Data Source setup for SharePoint Online for more details.
Also verify that the External data source in Salesforce setup that corresponds to the Sharepoint repository has the correct Site Url: See for more details.
To resolve the "You are not authorized to perform that operation" error in Salesforce Files Connect Office 365, the Permission Request XML Scope must exactly match one of the three valid SharePoint permission scope values. Follow the steps below to update the Scope in your SharePoint app registration.
https://[sharepoint domain]/[site collection path]/_layouts/15/appinv.aspxThe following is an example Permission Request XML for connecting to a single site on SharePoint Online. The Scope value must be one of the three exact values specified in the Salesforce help documentation — do not substitute your company's SharePoint domain name.
The Permission Request XML format is:
AppPermissionRequests containing an AppPermissionRequest element where Scope is set to "http://sharepoint/content/sitecollection/web" and Right is set to "Read".
Create an Authentication Provider for SharePoint Online or OneDrive for Business Using Office 365 (Alternate Method)
Create an Authentication Provider for SharePoint Online or OneDrive for Business
000386960

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.