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

Have Sharepoint return only joined Teams drives, not all accesible Sites #6126

Closed
1 task done
masaball opened this issue Nov 18, 2024 · 2 comments
Closed
1 task done
Assignees

Comments

@masaball
Copy link
Contributor

masaball commented Nov 18, 2024

The initial implementation for supporting Sharepoint sites pulls in every site that a user has access to. In a large organization, this can result in an overwhelming amount of results that is very difficult for a user to parse and navigate through even after some level of filtering. By limiting results to only team drives that a user is explicitly a member of we should be able to get a more concise, relevant, and usable listing.

From #6111:

There is a /me/joinedTeams endpoint in the microsoft graph API. For me this returns 3 options (Library Technologies, Digital Accessibility, and Eviada). Using the teams ID, we can query the /groups/{group_id}/drives series of endpoints to get the child drives and files for each specific team.

Done Looks Like

  • Sharepoint integration in browse everything is reworked to use joinedTeams instead of sites endpoints
@elynema
Copy link
Contributor

elynema commented Nov 25, 2024

Tested for audio and video item. Uploaded fine and did create a thumbnail for the video item.

@joncameron
Copy link
Contributor

Works great! I created #6135 for something I saw while testing, where the auth flow needed to be gone through twice. I'll test that again in a different environment as well.

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

No branches or pull requests

3 participants