# Sharepoint Connector issue - configuring api permissions

**URL:** <https://discuss.elastic.co/t/sharepoint-connector-issue-configuring-api-permissions/356831>\
**Category:** Elasticsearch\
**Tags:** connectors\
**Created:** [April 5, 2024, 3:01am UTC](https://discuss.elastic.co/t/sharepoint-connector-issue-configuring-api-permissions/356831 "2024-04-05T03:01:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshayd302](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshayd302/32/140809_2.png) [@Akshayd302](https://discuss.elastic.co/u/Akshayd302)\
**Post date:** [April 5, 2024, 3:01am UTC](https://discuss.elastic.co/t/sharepoint-connector-issue-configuring-api-permissions/356831/1 "2024-04-05T03:01:56Z")

</div>

We are using elastic' sharepoint native connector but running into an issue where from organization policy perspective are only allowed to get permission to access only limited sites and not all.

Elastic sharepoint connector requires below permissions  
Sites.read.all  
Groups.all  
User.Readbasic.all

But instead is it possible to make this connector work with sites.selected permissions only instead of all?

---

<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:** [April 5, 2024, 9:15am UTC](https://discuss.elastic.co/t/sharepoint-connector-issue-configuring-api-permissions/356831/2 "2024-04-05T09:15:00Z")

</div>

Hi Akshayd302,

Unfortunately for now we only work with `Sites.Read.All` permission. We've discussed within the team that we want to implement this feature eventually, but now it's not in our priority.

We're open to contributions, however, feel free to contribute a PR to [our repository](https://github.com/elastic/connectors/blob/main/connectors/sources/sharepoint_online.py) to fix this problem and it'll be available for native connectors in the release after PR is merged!
