# How to enable FenixPyre integration in SharePoint

### Create an Azure app (requires Admin access) <a href="#this-article-will-discuss-how-to-enable-the-fenixpyre-integration-on-sharepointonedriveteams-create" id="this-article-will-discuss-how-to-enable-the-fenixpyre-integration-on-sharepointonedriveteams-create"></a>

**Step 1:** Go to <https://portal.azure.com/>

**Step 2:** Click on Azure Active Directory

<figure><img src="/files/m40DVHEdC6pjqam96aUs" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/lDuBAGeEjNHVtqGCMba5" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/HZoCUbl5WcaGupRUDrC5" alt=""><figcaption></figcaption></figure>

**Step 5:** Give the app a name.

1. Our recommendation is: `FenixPyre`

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

1. Account Type: Accounts in this organizational directory only (FenixPyre only - Single tenant).
2. App Type: `Web`and add redirect URI as: <https://admin.anchormydata.com/\\><org-id>/integrations/sharepoint and <https://admin.fenixpyre.com/\\><org-id>/integrations/sharepoint
3. Click on Add again and add another redirect URL. App Type:  `Web`and add redirect URI as <https://share.anchormydata.com/\\><org id>/callback/onedrive and <https://share.fenixpyre.com/\\><org id>/callback/onedrive
4. Click on Add again and add another redirect URL. App Type:  `Web`and add redirect URI ashttps\://fenixshare.anchormydata.com/\<org id>/callback/onedrive.

<figure><img src="/files/V2JulX56ZOIDFVPhDmwp" alt=""><figcaption></figcaption></figure>

**Step 7:** Click on `Register`<br>

<figure><img src="/files/Pm5T3ryhNjptB1KE8f34" alt=""><figcaption></figcaption></figure>

**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
   * <https://icon-assets.anchormydata.com/fenixpyre_200x200_b%26w.jpg>
2. Home page URL: `https://fenixpyre.com/`
3. Terms of service URL: [`https://fenixpyre.com/ssa`](https://fenixpyre.com/ssa)
4. Privacy Statement URL: [`https://fenixpyre.com/privacy-policy`](https://fenixpyre.com/privacy-policy)
5. Click on `Save`

<figure><img src="/files/Nfhbsr2t6OFSlovdrXvy" alt=""><figcaption></figcaption></figure>

**Step 9:** Create a secret key&#x20;

* Click on `Certificates & Secrets` from the app details page
* Click on `Client secrets` and select `New client secret`

<figure><img src="/files/LEWtWWLy0uG0OspwEAqD" alt=""><figcaption></figcaption></figure>

* Give a name to the secret. We recommended the name: `sharepoint_integration`. Select Expiry date as `12 months` and then click on  `Add.`

<figure><img src="/files/bf0yXQMTIn2A8Rh73J0f" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/yebvWviuQiJiY2rNO6qW" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/zFhf3abPtmpmkf7Lv4Xn" alt=""><figcaption></figcaption></figure>

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

```
"addIns": [
		{
			"id": "76724c1c-90f2-44d1-af08-37166e0223c0",
			"type": "FileHandler",
			"properties": [
				{
					"key": "version",
					"value": "2"
				},
				{
					"key": "actions",
					"value": "[{\"type\":\"custom\",\"id\":\"custom1\",\"url\":\"https://onedrive.anchormydata.com/handler/v1/file/open\",\"displayName\":\"Open\",\"shortDisplayName\":\"Open\",\"icon\":{\"png1x\":\"https://icon-assets.anchormydata.com/fenixpyre_200x200_trans.png\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"web\":{}}},{\"type\":\"custom\",\"id\":\"custom2\",\"url\":\"https://onedrive.anchormydata.com/handler/v1/file/share\",\"displayName\":\"Share\",\"shortDisplayName\":\"Share\",\"icon\":{\"png1x\":\"https://icon-assets.anchormydata.com/fenixpyre_200x200_trans.png\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"folder\":{},\"allowMultiSelect\":false,\"web\":{}}},{\"type\":\"custom\",\"id\":\"custom3\",\"url\":\"https://onedrive.anchormydata.com/handler/v1/files/anchor/setup\",\"displayName\":\"Add To Auto Encryption\",\"shortDisplayName\":\"Auto Encryption\",\"icon\":{\"png1x\":\"https://icon-assets.anchormydata.com/fenixpyre_200x200_trans.png\"},\"availableOn\":{\"folder\":{},\"allowMultiSelect\":false,\"web\":{}}},{\"type\":\"custom\",\"id\":\"custom4\",\"url\":\"https://onedrive.anchormydata.com/handler/v1/files/anchor\",\"displayName\":\"Encrypt\",\"shortDisplayName\":\"Anchor\",\"icon\":{\"png1x\":\"https://icon-assets.anchormydata.com/fenixpyre_200x200_trans.png\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"allowMultiSelect\":true,\"web\":{}}},{\"type\":\"custom\",\"id\":\"custom5\",\"url\":\"https://onedrive.anchormydata.com/handler/v1/files/unanchor\",\"displayName\":\"Decrypt\",\"shortDisplayName\":\"unAnchor\",\"icon\":{\"png1x\":\"https://icon-assets.anchormydata.com/fenixpyre_200x200_trans.png\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"allowMultiSelect\":true,\"web\":{}}},{\"type\":\"custom\",\"id\":\"custom6\",\"url\":\"https://onedrive.anchormydata.com/handler/v1/files/logs\",\"displayName\":\"Access Logs\",\"shortDisplayName\":\"Show Logs\",\"icon\":{\"png1x\":\"https://icon-assets.anchormydata.com/fenixpyre_200x200_trans.png\"},\"availableOn\":{\"file\":{\"extensions\":[\"*\"]},\"allowMultiSelect\":false,\"web\":{}}}]"
				}
			]
		}
	],
```

<figure><img src="/files/Khpug8AUOMQzzxrrCZt0" alt=""><figcaption></figcaption></figure>

**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`(SharePoint Permission)

<figure><img src="/files/BF2rn2Ah6GYLx93VVOQ8" alt=""><figcaption></figcaption></figure>

**Step 13:** After adding the API permissions please click on `Grant admin consent`

**Step 14:** For the App to be visible in SharePoint/OneDrive/Teams following Steps has to be performed

* Go to Azure Active Directory or Microsoft Entra ID

<figure><img src="/files/QB0bpMLLNHbBx2pXx2m8" alt=""><figcaption></figcaption></figure>

* Click on Enterprise applications

<figure><img src="/files/8gORSVkpt5FkcMWtzUgD" alt=""><figcaption></figcaption></figure>

* Select your App from the list

<figure><img src="/files/MGh6lA4EwtZhWPUwzGhd" alt=""><figcaption></figcaption></figure>

* Click on Properties

<figure><img src="/files/9QO0dhSI0HdML9EhuakN" alt=""><figcaption></figcaption></figure>

* App Visibility&#x20;
  * To enable app for specific users and groups

    * **Set "Assignment Required" to "Yes"** – This ensures that only specifically assigned users have access.
    * **Set "Visible to Users" to "Yes"** – This hides FenixPyre from general users, making it accessible solely to those who are assigned.

    <figure><img src="/files/qiOgOFeU9WEEW4lxUPVF" alt=""><figcaption></figcaption></figure>
  * To enable app for all the users across organization

    * **Set "Assignment Required" to "No"**&#x20;
    * **Set "Visible to Users" to "Yes"**

    <figure><img src="/files/8FCXnqOSCoGvGBop9ES4" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fenixpyre.com/fenixpyre-for-admins/admin-dashboard/integrations/sharepoint-onedrive/how-to-enable-fenixpyre-integration-in-sharepoint.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
