It might be because the Python script wasn't focused on the correct scope (Mail.Send)
did you ensure the correct scope was granted?
try decoding access token and check the scope value,
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
i am using microsoft graph explorer to call this url :
https://graph.microsoft.com/v1.0/users/******@outlook.com/messages
which return all the messages and everything is fine.
but when I use the URL call in my Python script i get :
Error: 404, Details: {"error":{"code":"ErrorInvalidUser","message":"The requested user '******@outlook.com' is invalid."}}
this is a personal email btw
I tried the api on my work email everything was fine but now that I created this account something gone wrong.
I changed the tenant ID to "common" but still facing the same issue
It might be because the Python script wasn't focused on the correct scope (Mail.Send)
did you ensure the correct scope was granted?
try decoding access token and check the scope value,