Hello,
I have been trying for quite some time now to use the Graph API in combination with Azure to read the messages inside of my outlook email's inbox. I am doing this in Python. I have been very thorough with the https://developer.microsoft.com/en-us/graph/graph-explorer tool, and I have noticed that it works flawlessly when I make requests using the "/me/" path on my endpoint:
![User's image](https://learn-attachment.microsoft.com/api/attachments/1d713bc8-033a-41a1-b74f-6100cc713727?platform=QnA)
However, with that being said, this setup is unsuitable for my production usage, because I have also noticed that the "/me/" path requires for you to have authentication a session and logged in.
Instead, I am trying to use the "/users/{user-id}/" path to fetch and read emails from from my outlook email's inbox, which I read does not require a manual user sign-in. For example, here is the endpoint that I would like to have work (I am trying to fetch the messages inside of the email for general@futurefundsgroup.com): https://graph.microsoft.com/v1.0/users/futurefundsgroup@gmail.com/messages
However, when I do this, I get the following error on the Graph API tool (linked above):
![User's image](https://learn-attachment.microsoft.com/api/attachments/1010ebf8-01a3-4700-9a9e-82b9257f88e6?platform=QnA)
Note that I have registered my application and have set the following API permissions: ![User's image](https://learn-attachment.microsoft.com/api/attachments/b0b9314a-ce97-4ed1-8a34-06691601d669?platform=QnA)
These are my authentication settings (not really sure at all what this does or if this makes a different in my case):
![User's image](https://learn-attachment.microsoft.com/api/attachments/a1777459-8ada-45c5-be54-19f249c89402?platform=QnA)
And this is my Azure active directory. For it, I have created a new Azure account for the email "general@futurefundsgroup.com", and I invited it to the application in hopes that this would resolve my issue. But unfortunately, it did not:
![User's image](https://learn-attachment.microsoft.com/api/attachments/6f5d5a5d-4f0e-4969-a5f7-272168e1b50d?platform=QnA)
I'm really out of ideas here. What could I do to have this work? Please note that I created the Azure application on a separate email, and then added futurefundsgroup@gmail.com to the Azure AD manually.