Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sharepoint connector to work with less permissions #1294

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mboret
Copy link
Contributor

@mboret mboret commented Apr 3, 2024

The SharePoint connector currently requires an excessive amount of permissions to function effectively. Specifically, the Sites.FullControl.All permission level is not acceptable for most companies, as it grants the Service Principal unrestricted access to all sites. Even the Sites.ReadAll permission level is not ideal, as it allows access to all company sites.

To address this issue, this pull request introduces changes that avoid scanning all sites when a specific site has been defined. By doing so, the Service Principal only requires Sites.Selected permissions and can be added to the site's Access Control List as a read-only user. This approach aligns with the best practice of least privilege.

I have also modified the way a site is defined. Instead of just the site name, the URL is now required because I was unable to find a way to obtain the root URL with the restricted permissions.

Copy link

vercel bot commented Apr 3, 2024

Someone is attempting to deploy a commit to the Danswer Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant