When using the new Granular Graph API permissions for Sites.Selected, I'm able to see list items and file data using the read permissions. When I try to download the content of a file however I'm getting a 403 response with an Access Denied message.
When using the new Granular Graph API permissions for Sites.Selected, I'm able to see list items and file data using the read permissions. When I try to download the content of a file however I'm getting a 403 response with an Access Denied message.
Can you please share the detailed response that you receive (including the response id, timestamp)?
Outside of your code, you can repro the same with Graph Explorer/POSTMAN as well, right?
Sure no problem. Interestingly the response doesn't include the response id or timestamp like most graph responses do.
Here is a screenshot of the postman request and the response that I'm getting:
Please let me know if you need any more information to help solve this bug
Hi - I have the same issue. There is not much to the error messages.
Stream docStream = await graphClient.Sites[spSite].Lists[spLibId].Items[itm.Id].DriveItem.Content
.Request()
.GetAsync();
Error Msg - Code: accessDenied Message: Access denied
at Microsoft.Graph.HttpProvider.<SendAsync>d__18.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) ...
Hi @Deva-MSFT
reporting same issue.
trying to download the file content and it is giving {"error":{"code":"accessDenied","message":"Access denied"}}.
Hi @Deva-MSFT
I've the same issue in multiple tenants.
Trying to download the file content/CreateUploadSession and it is giving {"error":{"code":"accessDenied","message":"Access denied"}}.
Do you have idea when it will be released the fix?
Regads
We are in the process of fixing the upload and download capabilities when using the Sites.Selected scope. We apologize for the inconvenience this has caused.
I'm encountering the same bug:
"error": {
"code": "accessDenied",
"message": "Access denied"
Do you have any idea when the fix will be released?
Encountering similar issue.
Could upload a file, and can list drives via graph api.
But content convert gives access denied.
10 people are following this question.