I can't seem to find anywhere where I can restrict access for an application to read/write to a specific file/folder.
Within the permissions its just for all. - https://docs.microsoft.com/en-us/graph/permissions-reference
I have am Umbraco website, where on form submissios, it would write to a file in Sharepoint, however giving the application access rights to all files isn't entirely safe. If in the event the website gets compromised, they may be able to access files from an organisations Sharepoint.
If this cannot be achieved at all, are there any possible workarounds?