Skip to main content

Error: 917656; Access denied. Before opening files in this location, you must first browse to the web site and select the option to login automatically". 
 
This error originates from Microsoft and occurs when the app's permissions are not set from the tenant-admin-url. To resolve this issue, kindly follow these steps: 

Registering the Add-In 

  1. Navigate to the Register Add-In page by entering the url as: https://{sitename}.SharePoint.com/_layouts/15/appregnew.aspx. 

  1. In the "App Information" section, click Generate, which is located next to the Client Id and Client Secret textboxes to generate the respective values. 

  1. Set Title, App Domain, and Redirect URI by filling in their respective text boxes. 

  1. Click Create. 

The add-in is registered, and the Sharepoint App displays the created information. 

 

 

 

Granting Permissions to the Add-In 

  1. Navigate to the SharePoint site. 

  1. Enter the URL: https://{sitename}-admin.sharepoint.com/_layouts/15/appinv.aspx in the browser. This redirects to the Grant Permission page. 

  1. At App Id, enter the Client ID which you generated earlier, and click Lookup. This populates the values in the other text boxes (Title, App Domain and Redirect URL). 

  1. Enter the following permission request in XML format: 

<AppPermissionRequests AllowAppOnlyPolicy="true"> 

 <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl"/> 

</AppPermissionRequests> 

 

 

  1. Click Create. Sharepoint App displays a permission consent dialog. To grant the permissions, click Trust It. 

 

 

These steps are also highlighted in the Microsoft Documentation and in our SharePoint driver documentation

 

Please reach out to [email protected] if this does not resolve the problem for you.