I try to download the file in one drive. I got this error, me request is only valid with delegated authentication flow. How to solve this issue? In below I add the permissions
I try to download the file in one drive. I got this error, me request is only valid with delegated authentication flow. How to solve this issue? In below I add the permissions
I get the below error:
"error": {
"code": "BadRequest",
"message": "/me request is only valid with delegated authentication flow.",
"innerError": {
"date": "2021-09-30T18:50:40",
"request-id": "f4431d06-9434e-4f1d-9434-43a763256a3b",
"client-request-id": "1e3c1d06-943f-4f1d-94334-44a7633276a3b"
}
}
}
Hello @Tester-4121, would you mind providing the API you are using and any screenshot of your error message?
I get the below error:
"error": {
"code": "BadRequest",
"message": "/me request is only valid with delegated authentication flow.",
"innerError": {
"date": "2021-09-30T18:50:40",
"request-id": "f4431d06-9434e-4f1d-9434-43a763256a3b",
"client-request-id": "1e3c1d06-943f-4f1d-94334-44a7633276a3b"
}
}
}
Hi @Tester-4121
That's the problem, the /me endpoint only supports the delegated authentication flow, you should use the auth code flow or the ROPC flow to get the access token.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
No, Again and again, the same issues are coming. /me request is only valid with delegated authentication flow.
@Tester-4121 If you are using delegated authentication flow then this error should not occur, please use https://jwt.ms/ to parse your access token and share a screenshot.
Hi @Tester-4121 Would you please provide us with an update on the status of your issue?
Hi @Tester-4121
Is there anything else I can help with regarding this issue?
You can comment us at any time and we will continue to follow up.
Thanks,
Carl Zhao
Hi @Tester-4121
I am able to replicate the same issue when i use Application token. 
To get the drive file content I suggest you to use Get users/{own-email-Address} in your endpoint to get the desired result. Graph API endpoint GET /users/{user-email-Id}/drive/items/{item-id}/content
Result:
Hope this helps,
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".
9 people are following this question.