Loading

Error 'You are not authorized to perform that operation' in Files Connect Office 365

Julkaisupäivä: Aug 18, 2023
Kuvaus
Issue:

SharePoint external data source shows up as Authenticated but a Chatter user is unable to see the files or gets the message:
  • "You are not authorized to perform that operation" when browsing SharePoint or Salesforce admin sees
  • "An unknown error occurred while accessing Files Connect" or "You are not authorized to perform this operation" when trying to validate and sync the external data source.
  • "Can't access external source, External data source is unavailable because of an error"

Cause:
The Permission Request XML is incorrect in the Sharepoint Online application's permission settings.

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.
Ratkaisu
The Scope of the Permission Request XML needs to be exactly one of the 3 values specified in Create an Authentication Provider for SharePoint Online or OneDrive for Business Using Office 365 (Alternate Method) (section Register an Office 365 app, step 6).
A common mistake is to put the company's sharepoint domain name in the Scope.

Create an Authentication Provider for SharePoint Online or OneDrive for Business

Steps to follow:
- On SharePoint, go to https://[sharepoint domain]/[site collection path]/_layouts/15/appinv.aspx
- Enter the Client ID of the SharePoint app you created. This value is the consumer key of the Auth provider you created on Salesforce's side.
- Click Lookup

- Click Create. It will not create another SharePoint app but only update the current app.
- Enter a correct value for the field Permission Request XML, with a correct scope.

 

Ex. Permission Request XML for connecting to a single site on SharePoint Online: 

<AppPermissionRequests>  
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="Read"/>
</AppPermissionRequests>
Knowledge-artikkelin numero

000386960

 
Ladataan
Salesforce Help | Article