# Sharepoint

**URL:** <https://discuss.elastic.co/t/sharepoint/376424>\
**Category:** Elasticsearch\
**Tags:** vector-search, connectors\
**Created:** [March 26, 2025, 3:11pm UTC](https://discuss.elastic.co/t/sharepoint/376424 "2025-03-26T15:11:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![volivares](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volivares/32/121400_2.png) [@volivares](https://discuss.elastic.co/u/volivares)\
**Post date:** [March 26, 2025, 3:11pm UTC](https://discuss.elastic.co/t/sharepoint/376424/1 "2025-03-26T15:11:49Z")

</div>

I'm having an issue with the SharePoint connector that isn't finishing its updates completely. It's throwing the following error:

> PermissionsMissing: Received Unauthorized response for [https://xxxx.sharepoint.com/sites/yyyy/zzzz/\_api/lists/GetByTitle](https://xxxx.sharepoint.com/sites/yyyy/zzzz/_api/lists/GetByTitle)('Vnculos de uso compartido')/items(1)?$expand=AttachmentFiles. Verify that the correct Graph API and Sharepoint permissions are granted to the app and admin consent is given. If the permissions and consent are correct, wait for several minutes and try again.

I've already granted all the permissions mentioned in the documentation at the application level, but the error persists.

---

<div class="post-metadata">

**Author:** ![Jedr\_Blaszyk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jedr_blaszyk/32/127637_2.png) [@Jedr\_Blaszyk](https://discuss.elastic.co/u/Jedr_Blaszyk)\
**Post date:** [March 28, 2025, 10:22am UTC](https://discuss.elastic.co/t/sharepoint/376424/2 "2025-03-28T10:22:19Z")

</div>

Hey @volivares can you specify if you are using Sharepoint online or sharepoint server connector?

Can you share what stack version, and connector framework version (if self-managed) are you on?

Looking at the URL I'm assuing you are using Sharepoint online. Can you make sure that you followed all steps listed in [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/es-connectors-sharepoint-online.html#es-connectors-sharepoint-online-client-oauth-app-permissions)? If your tenant has been created after Nov 2024 you need to use [certificate authentication](https://www.elastic.co/guide/en/elasticsearch/reference/current/es-connectors-sharepoint-online.html#es-connectors-sharepoint-online-client-oauth-app-permissions).

---

<div class="post-metadata">

**Author:** ![volivares](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volivares/32/121400_2.png) [@volivares](https://discuss.elastic.co/u/volivares)\
**Post date:** [April 1, 2025, 2:28pm UTC](https://discuss.elastic.co/t/sharepoint/376424/3 "2025-04-01T14:28:01Z")

</div>

Hi @Jedr_Blaszyk !  
I am using SharePoint Online, and the elastic-connectors:8.16.1 connector. I'm attaching images.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/7/57064bf476c203840aa4aac79900f7a4cbe15b63.png)

---

<div class="post-metadata">

**Author:** ![volivares](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volivares/32/121400_2.png) [@volivares](https://discuss.elastic.co/u/volivares)\
**Post date:** [April 1, 2025, 2:35pm UTC](https://discuss.elastic.co/t/sharepoint/376424/4 "2025-04-01T14:35:25Z")

</div>

I have everything configured according to the documentation, including the certificate. However, the problem I'm having occurs after downloading the documents. It seems the process doesn't finish, which causes the deleted documents in SharePoint not to be updated.

---

<div class="post-metadata">

**Author:** ![Jedr\_Blaszyk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jedr_blaszyk/32/127637_2.png) [@Jedr\_Blaszyk](https://discuss.elastic.co/u/Jedr_Blaszyk)\
**Post date:** [April 2, 2025, 8:31am UTC](https://discuss.elastic.co/t/sharepoint/376424/5 "2025-04-02T08:31:18Z")

</div>

Hey, can you describe your issue in more detail. Specifically what works, how far does the sync get, are only subsequent syncs failing that cause deleted docs in sharepoint not being deleted from index? Please include as many details as possible, otherwise it's hard for us to help.

> I have everything configured according to the documentation, including the certificate.

You are saying that you have Salesforce online certificate-based auth and use `elastic-connectors:8.16.1` but this was only added in `elastic-connectors:8.16.3` according to git history. Can you see [certificate field](https://github.com/elastic/connectors/blob/main/connectors/sources/sharepoint_online.py#L1302) in connector configuration?
