I am using the Microsoft Graph Api to send and get messages, but when trying to make the /messages or the /sendMail request, I’m getting the following error:
“code”: “AuthenticationError”,
“message”: “AADSTS500014: The service principal for resource ‘https://outlook.office365.com/’ is disabled. This indicate that a subscription within the tenant has lapsed, or that the administrator for this tenant has disabled the application, preventing tokens from being issued for it. Trace ID: fb68ddac-e1f1-452d-827b-3451f0c0c101 Correlation ID: 1aed6368-ba68-45dc-a5ec-f369f3d3b951 Timestamp: 2024-04-29 10:53:25Z”,
I am getting correctly the acessToken, and the office account that im Logging in is active because I tried to login and send messages from Thunderbird and It worked.
For more information, I’ve checked the Allow Users to Login in the MicrosoftAzure Directory and is setted to Yes.
I am getting correctly the acessToken, and the office account that im Logging in is active because I tried to login and send messages from Thunderbird and It worked.
For more information, I’ve checked the Allow Users to Login in the MicrosoftAzure Directory and is setted to Yes.
Sergi Romero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.