> For the complete documentation index, see [llms.txt](https://docs.empowergpt.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.empowergpt.ai/settings/system-settings/integration-with-sharepoint-and-onedrive.md).

# Integration with SharePoint & OneDrive

{% stepper %}
{% step %}
**Upload generated certificate at registered application “EmpowerGPT” on Microsoft Entra ID**

1. Paste the base URL for your organization's SharePoint.

{% hint style="info" %}
The base URL for SharePoint Online is provisioned based off your input when setting up your Microsoft 365 subscription.&#x20;

For example, if your organization name is Contoso, the root site for SharePoint Online will be <https://contoso.sharepoint.com>
{% endhint %}

2. Click the 'Download Certificate' button to download the required certificate.
3. In another tab, sign in to [https://portal.azure.com/](https://portal.azure.com/#home) as an admin
4. Navigate to “Microsoft Entra ID” (Azure Active Directory) > “App registrations” > ”All applications” > ”EmpowerGPT”.
5. Select the application and navigate to “Certificates and secrets” under the Manage section.
6. Select the “Certificates” tab and click on upload certificate. Upload the above generated certificate, downloaded on your computer.

<div data-with-frame="true"><figure><img src="/files/05AguVcQA0bGpycOCt4i" alt=""><figcaption></figcaption></figure></div>

7. Enter suitable description and click the "Add" button to add the certificate.
   {% endstep %}

{% step %}
**Give required permissions against used APIs to the registered app in Microsoft Entra ID**

1. In another tab, sign in to  as an admin
2. Navigate to “Microsoft Entra ID” (Azure Active Directory) > “App registrations” > ”All applications” > ”EmpowerGPT” > “API Permissions”.
3. Click “+ Add a permission” button and select “Microsoft Graph” under Microsoft APIs.

<div data-with-frame="true"><figure><img src="/files/IFzdOvfIxXVPxOT5WkVG" alt=""><figcaption></figcaption></figure></div>

3. Select “Application permissions” to give the following permissions and confirm by clicking “add permission” button below.
   1. Sites.Read.All.
   2. Files.Read.All.
4. Repeat step 2 and select "Delegated permissions" to give the following permissions. Confirm by clicking "add permission" button below.
   1. Sites.Read.All.
   2. Files.Read.All.
5. Click "+ Add a permission" button and select "SharePoint" under Microsoft APIs to give the following "Application permission". Click "add permission" to confirm.
   1. Sites.Read.All.
6. Make sure admin consent is provided for permissions that require it, indicated by a “Yes” in the “Admin consent required” column of the “Configured permissions” table.
   {% endstep %}
   {% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.empowergpt.ai/settings/system-settings/integration-with-sharepoint-and-onedrive.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
