# Sharepoint connector

**URL:** <https://discuss.elastic.co/t/sharepoint-connector/366030>\
**Category:** Elastic Search\
**Tags:** connectors\
**Created:** [September 4, 2024, 11:58am UTC](https://discuss.elastic.co/t/sharepoint-connector/366030 "2024-09-04T11:58:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noam\_Huri](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@Noam\_Huri](https://discuss.elastic.co/u/Noam_Huri)\
**Post date:** [September 4, 2024, 11:58am UTC](https://discuss.elastic.co/t/sharepoint-connector/366030/1 "2024-09-04T11:58:32Z")

</div>

Hi community,

We are using for the first time SharePoint online connector, and get this error message, any ideas?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/d/fd786fcf9335ed6da1bbedc0d28dd12d23e20cc4.png)

Your connector has reported an error

PermissionsMissing: Received Unauthorized response for [https://graph.microsoft.com/v1.0/sites/?$filter=siteCollection%2Froot%20ne%20null&$select=siteCollection,webUrl](https://graph.microsoft.com/v1.0/sites/?$filter=siteCollection%2Froot%20ne%20null&$select=siteCollection,webUrl). 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.

Thank you,  
Noam

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [September 5, 2024, 9:56am UTC](https://discuss.elastic.co/t/sharepoint-connector/366030/2 "2024-09-05T09:56:45Z")

</div>

Hi @Noam_Huri,

Welcome back! Can you confirm that you've followed the [setup instructions in the documentation](https://www.elastic.co/guide/en/workplace-search/current/workplace-search-sharepoint-online-connector.html#sharepoint-configuration) and have set all the permissions listed in the steps?

---

<div class="post-metadata">

**Author:** ![Noam\_Huri](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@Noam\_Huri](https://discuss.elastic.co/u/Noam_Huri)\
**Post date:** [September 5, 2024, 11:18am UTC](https://discuss.elastic.co/t/sharepoint-connector/366030/3 "2024-09-05T11:18:46Z")

</div>

Hi @carly.richmond ,

Thanks, 😊 We decided to build our internal search with

Connector clients (self-managed) and not with Workplace.

We did all the instructions in this [guide](https://www.elastic.co/guide/en/enterprise-search/current/connectors-sharepoint-online.html#connectors-sharepoint-online-connector-client-reference) but still get errors.

Thanks again

Noam

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [September 9, 2024, 1:23pm UTC](https://discuss.elastic.co/t/sharepoint-connector/366030/4 "2024-09-09T13:23:26Z")

</div>

Ok, can you share what permissions you have enabled on the Sharepoint side? I'm not sure if it's worth checking the [Graph API troubleshooting](https://learn.microsoft.com/en-us/graph/resolve-auth-errors) as covered here in the Microsoft documentation as well.

---

<div class="post-metadata">

**Author:** ![Artem\_Shelkovnikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artem_shelkovnikov/32/134322_2.png) [@Artem\_Shelkovnikov](https://discuss.elastic.co/u/Artem_Shelkovnikov)\
**Post date:** [September 9, 2024, 3:08pm UTC](https://discuss.elastic.co/t/sharepoint-connector/366030/5 "2024-09-09T15:08:05Z")

</div>

Hi @Noam_Huri,

Please make sure you followed the guide steps for both Sharepoint Online and Sharepoint Server. Permissions in both applications are important.

Looking at the request that failed, it seems that you're missing permissions to Graph API Sites: `Sites.All`. Also you need to make sure that permissions are `Application` permissions, connector does not support delegated permissions.

---

<div class="post-metadata">

**Author:** ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)\
**Post date:** [September 9, 2024, 4:23pm UTC](https://discuss.elastic.co/t/sharepoint-connector/366030/6 "2024-09-09T16:23:36Z")

</div>

Added #connectors

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 7, 2024, 4:24pm UTC](https://discuss.elastic.co/t/sharepoint-connector/366030/7 "2024-10-07T16:24:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
