As mentioned in the other thread, you need the Files.SelectedOperations.Selected
scope, not Sites.Selected
.
Restrict app access of graph apis to specific folder of share point
While restricting an app to access a particular folder in a site only, I used
POST https://graph.microsoft.com/v1.0/sites/{siteId}/drives/{driveId}/items/{itemId}/permissions { "roles": [ "read" ], "grantedTo": { "application": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } } }
. If i check using permissions GET api, I get a permission for the app ID.
However , when I try and access the contents of the folder using this app, I get accessDenied.
Note: I have given Sites.Specific permissions to this app.
2 answers
Sort by: Most helpful
-
Vasil Michev 116K Reputation points MVP
2025-01-08T17:21:23.4966667+00:00 -
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more