Hi Glenn Maxwell,
Thank you for reaching out, Microsoft!
You can use application permissions rather than using delegated permissions to retrieve SharePoint sites, files and folders metadata. Please ensure you provide below application permissions to your app under API permissions and grant admin consent.
***Files.Read.All
Sites.Read.All
And then use GET driveItem endpoint to fetch SP files and folders.
GET /sites/{site-id}/drive/items/{item-id}
Please refer the below docs for more details:
https://learn.microsoft.com/en-us/graph/permissions-reference
https://learn.microsoft.com/en-us/graph/api/driveitem-get?view=graph-rest-1.0&tabs=http
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.