avalonmediasystem / avalon

Avalon Media System – Samvera Application
http://www.avalonmediasystem.org/
Apache License 2.0
94 stars 51 forks source link

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

Open masaball opened 4 days ago

masaball commented 4 days ago

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