Microsoft Graph API - /sendMail and /messages endpoints returning 500 error

Jones Neil - Cincinnati-AMIG 0 Reputation points
2026-09-01T17:43:36.1166667+00:00

In Python where "shared_email_address" is an email address to which access has already been configured. This code has been working for months on end, but started to hit the 500 error on 8/31/2026, so I want to determine if there are any known outages or changes that have been made to these endpoints. Additionally other endpoints (outside of mail/message endpoints) are working.

import msal
import requests

tenant_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # id of my tenant
client_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # client_id of my app
shared_email_address = "******@company.com" # shared email address of my department 

app = msal.ConfidentialClientApplication(
                    client_id=client_id, 
                    client_credential=None, 
          			authority=f"https://login.microsoftonline.com/{tenant_id}"
                )

token = app.acquire_token_for_client(
	["https://graph.microsoft.com/.default"]
)

headers = {
            "Content-Type": "application/json",
            "Authorization": f"Bearer {token}",
        }


resp = requests.get(
	url=f"https://graph.microsoft.com/v1.0/users/{shared_email_address}/messages", 
	headers=self.headers
)
# Returns 500 error
Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Vasil Michev 127.8K Reputation points MVP Volunteer Moderator
    2026-09-01T18:04:02.2033333+00:00

    There was indeed an Exchange Online outage yesterday (Aug 31st), caused by a larger auth-related issue (MO1465074). The underlying issue should be fixed now and the service is recovering. If you have access to the SHD, you can review the full details here: https://admin.cloud.microsoft/?#/servicehealth/:/alerts/EX1464935

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.