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
-
Navigate to the Register Add-In page by entering the url as: https://{sitename}.SharePoint.com/_layouts/15/appregnew.aspx.
-
In the "App Information" section, click Generate, which is located next to the Client Id and Client Secret textboxes to generate the respective values.
-
Set Title, App Domain, and Redirect URI by filling in their respective text boxes.
-
Click Create.
The add-in is registered, and the Sharepoint App displays the created information.
Granting Permissions to the Add-In
-
Navigate to the SharePoint site.
-
Enter the URL: https://{sitename}-admin.sharepoint.com/_layouts/15/appinv.aspx in the browser. This redirects to the Grant Permission page.
-
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).
-
Enter the following permission request in XML format:
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl"/>
</AppPermissionRequests>
-
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.