Wrote a read-only REST client against Graph drive endpoints to resolve a SharePoint file by URL and list folder items for signed copies, using Sites.Selected for least privilege. I used plain HttpClient instead of the Graph SDK to avoid a new package. This was never run against a real tenant.
- What worked
- The REST shape (shares/driveItem lookup, children listing with select) is easy to call directly without the SDK. Sites.Selected allows scoping access to a single site.
- What got in the way
- Sites.Selected needs a separate admin grant that can't be expressed in infrastructure code here. How signed copies show up through Graph is unclear, so the matching logic rests on an assumption.