This repository has been archived by the owner on May 29, 2024. It is now read-only.
[SharePoint] Only traverse groups that user has access to and handle GraphAPI request errors #544
Labels
bug
Something isn't working
Bug Description
As part of an enhancement to sync private Teams sites without having to wait for a propagation delay in Microsoft, there is logic which loops through sites that are associated with groups returned by the Graph API "groups" endpoint.
The "groups" endpoint lists all the groups within the organization, including those that the connecting user may not have access to or that there might not be associated Sharepoint sites created. The end result as the sync is performed is that 404 and 403 issues are encountered and the sync process does not continue.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Sharepoint connector should not try to request information from groups it is not a direct/indirect member of. Sync should continue when encountering unsuccessful responses (e.g. 403, 404) and log this information.
Environment
Additional context
This is an example 404 error from the diagnostics bundle:
The text was updated successfully, but these errors were encountered: