MicrosoftGraph Outlook Mail's List Message API allows me to list the message of the admin user (authorized the application to generate token), but it doesn't allow to get the messages of other users. I have tried the following API call
https://graph.microsoft.com/v1.0/users/[email protected]/messages
It returns the following error message.
Status Code: 403
{
"error": {
"code": "ErrorAccessDenied",
"message": "Access is denied. Check credentials and try again.",
"innerError": {
"request-id": "2c567919-e538-456a-9a90-74fa43685bd1",
"date": "2016-11-30T10:37:58"
}
}
}
Please help me to resolve the problem.
Note: I'm using code flow for authentication and it is a multi-tenant application. Is it possible to implement token flow for a multi-tenant application?