I have an application that needs to create a folder structure in a document library on a SharePoint site without a user, however I'm not able to obtain application API permissions Files.ReadWrite.All and Sites.ReadWrite.All due to corporate policy since this would effectively allow access to all sites. Is there a way to create folders in a document library using the REST API without access to all site collections but rather a specific site?
Application is registered in AAD attempting to use Microsoft Graph REST API via OAuth 2.0 client credentials grant flow. I don't work with SharePoint/OneDrive often, so any guidance is appreciated.