How to enable Anchor integration in SharePoint
  • 31 Mar 2023
  • 2 Minutes to read
  • Dark
    Light

How to enable Anchor integration in SharePoint

  • Dark
    Light

Article Summary

This article will discuss how to enable the Anchor integration on SharePoint.
Create an Azure app (requires Admin access)

Step 1: Go to https://portal.azure.com/

Step 2: Click on Azure Active Directory

Step 3: Click on App Registrations from the menu items on the left.

Step 4: Click on New registration on top of the page.

Step 5: Give the app a name.

  1. Our recommendation is: Anchor

Step 6: Select the account type and provide a redirect URL, and select app type as web

  1. Account Type: Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)
  2. App Type: Web
  3. Redirect URI: https://<dashboard url>/sharepoint

Step 7: Click on Register

Step 8: [Optional] In the app details page, click on Branding & Properties tab to customize your app.

  1. Logo: Please use the image below for the logo
  2. Home page URL: https://anchormydata.com/
  3. Terms of service URL: https://anchormydata.com/ssa
  4. Privacy Statement URL: https://anchormydata.com/privacy-policy
  5. Click on Save

Step 9: Create a secret key

  1. Click on Certificates & Secrets from the app details page
  2. Click on Client secrets and select New client secret

c. Give a name to the secret. We recommended the name: sharepoint_integration. Select Expiry date as 12 months and then click Add. Please note: When your client secret reaches its expiry date, create a new client secret and input it into the admin dashboard. For instructions to input client secret into the admin dashboard Click Here

d. Copy the secret value to add it to the Anchor admin portal later. Note: Please do not share the secret with anyone except Anchor.

Step 10: In the app details page, click on Manifest from the left menu items.

Step 11: Paste the following JSON into addIns section (highlighted in the screenshot) in the manifest. Click on Save.

{
			"id": "76724c1c-90f2-44d1-af08-37166e0223c0",
			"type": "FileHandler",
			"properties": [
				{
					"key": "version",
					"value": "2"
				},
				{
					"key": "actions",
					"value": "[{\"type\":\"newFile\",\"url\":\"https://onedrive.datanchor.io/handler/v1/file/open\",\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"web\":{}}},{\"type\":\"open\",\"url\":\"https://onedrive.datanchor.io/handler/v1/file/open\",\"icon\":{\"png1x\":\"https://i.ibb.co/ZgmSjrg/1600185279585.jpg\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"web\":{}}},{\"type\":\"preview\",\"url\":\"https://onedrive.datanchor.io/handler/v1/file/open\",\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"web\":{}}},{\"type\":\"custom\",\"url\":\"https://onedrive.datanchor.io/handler/v1/file/open\",\"displayName\":\"Open with Anchor\",\"shortDisplayName\":\"Open\",\"icon\":{\"png1x\":\"https://i.ibb.co/ZgmSjrg/1600185279585.jpg\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"web\":{}}},{\"type\":\"custom\",\"url\":\"https://onedrive.datanchor.io/handler/v1/file/share\",\"displayName\":\"Share with Anchor\",\"shortDisplayName\":\" Share\",\"icon\":{\"png1x\":\"https://i.ibb.co/ZgmSjrg/1600185279585.jpg\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"folder\":{},\"allowMultiSelect\":false,\"web\":{}}},{\"type\":\"custom\",\"url\":\"https://onedrive.datanchor.io/handler/v1/files/anchor/setup\",\"displayName\":\"Add To Auto Encryption\",\"shortDisplayName\":\"Auto Encryption\",\"icon\":{\"png1x\":\"https://i.ibb.co/ZgmSjrg/1600185279585.jpg\"},\"availableOn\":{\"folder\":{},\"allowMultiSelect\":false,\"web\":{}}},{\"type\":\"custom\",\"url\":\"https://onedrive.datanchor.io/handler/v1/files/anchor\",\"displayName\":\"Anchor my Data\",\"shortDisplayName\":\"Anchor\",\"icon\":{\"png1x\":\"https://i.ibb.co/ZgmSjrg/1600185279585.jpg\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"allowMultiSelect\":true,\"web\":{}}},{\"type\":\"custom\",\"url\":\"https://onedrive.datanchor.io/handler/v1/files/unanchor\",\"displayName\":\"unAnchor my Data\",\"shortDisplayName\":\"unAnchor\",\"icon\":{\"png1x\":\"https://i.ibb.co/ZgmSjrg/1600185279585.jpg\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"allowMultiSelect\":true,\"web\":{}}},{\"type\":\"custom\",\"url\":\"https://onedrive.datanchor.io/handler/v1/files/logs\",\"displayName\":\"Show File Access Logs\",\"shortDisplayName\":\"Show Logs\",\"icon\":{\"png1x\":\"https://i.ibb.co/ZgmSjrg/1600185279585.jpg\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"allowMultiSelect\":false,\"web\":{}}}]"
				}
			]
		}

Step 12: In the app details page, click on API Permissions from the left menu items.

  1. Anchor requires API permissions to access Microsoft Graph APIs and SharePoint files, permissions etc.

Please provide the following API permissions

Application Level Permissions:

1.Sites.Manage.All (Graph Permission)

Delegated Level Permissions:

1.User.Read.All (Graph Permission)

2.AllSites.FullControl(Share-point Permission)

Step 13: After adding the API permissions please click on Grant admin consent for Anchor

Step 14: For the App to be visible in SharePoint following Steps has to be performed

a. Go to Azure Active Directory

b. Click on Enterprise applications

c. Select your App from the list

d. Click on Properties

e. Enable Visible to users? by clicking the switch


Step 15: The app is now setup. Click Here for the next steps.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.