Correlate Microsoft 365 service health incidents with Entra sign-in failures to diagnose weekend sync outages across Exchange, SharePoint, and OneDrive.
Complexity: Intermediate. Impact: troubleshooting + monitoring + incident-response + microsoft-365 + entra-id.
Why use this workflow
When users report that Outlook, OneDrive, or SharePoint stopped syncing during off-hours (a weekend, holiday, or overnight window), the root cause is almost always one of three things: a Microsoft-side service incident, a tenant-wide authentication or Conditional Access change, or a per-user credential or token problem. Checking Service Health and the Entra sign-in logs together tells you which bucket the incident falls into before you open each user ticket.
This workflow pulls active and resolved service health issues for Exchange Online, SharePoint Online, and OneDrive for Business, then joins that data with sign-in failures scoped to the sync client apps (OneDrive, Outlook, SharePoint, Microsoft OneNote Sync, etc.) across the incident window.
Run this when multiple users report sync issues at once, Help Desk ticket volume spikes after a weekend, or you receive a Microsoft message center advisory and want to confirm which of your users were impacted.
Expected outcomes
- A list of active and recently resolved Microsoft service health issues affecting Exchange Online, SharePoint Online, and OneDrive for Business during the incident window.
- A categorized report of sign-in failures (by user, app, error code, and timestamp) for sync-related clients during the same window.
- Clear identification of the failure pattern: Microsoft service incident, tenant-wide misconfiguration (Conditional Access, MFA), or individual user/credential issues.
- An action list: which users need password resets, session revocations, or MFA re-registration, versus which tickets can be closed with a "Microsoft-side incident, auto-resolved" note.
- Exportable CSV evidence for the incident ticket or post-incident review.
Risks and considerations
- ServiceHealth.Read.All is required to query
/admin/serviceAnnouncement/issues. The older/serviceAnnouncement/issuespath is deprecated, so use the/admin/prefix. - Sign-in logs require Entra ID P1 or higher. Tenants on the free tier will not have
/auditLogs/signInsdata available. - Graph filter syntax is strict. Combining
status/errorCode ne 0withcreatedDateTime ge ...andcontains()in a single $filter often returns HTTP 400. Build queries incrementally: filter by date on the server, then filter by app name client-side. - Do not bulk-revoke sessions across all impacted users as a knee-jerk response. If the cause is a Microsoft service incident, revocation adds no value and forces users to re-authenticate unnecessarily.
- Error code 53003 (Conditional Access blocked) over a weekend frequently points to a policy change that was deployed Friday afternoon. Check policy audit logs before assuming user error.
- PII and retention: sign-in log exports contain UPNs and IP addresses. Store CSVs in a compliance-appropriate location and purge per your data retention policy.
Required permissions
| Permission | Why it's needed |
|---|---|
| ServiceHealth.Read.All | Read Microsoft 365 service health issues and message center advisories for Exchange, SharePoint, and OneDrive. |
| AuditLog.Read.All | Query Entra ID sign-in logs to identify authentication failures tied to sync clients. |
| Directory.Read.All | Resolve user principal names and enrich sign-in log entries with display names and department. |
| User.Read.All | Look up impacted user details when preparing remediation actions. |
Ask Dex
Paste the prompt into a Dex conversation.
Prompt for IT admins
Review OneDrive, SharePoint, and Exchange sync failures that occurred between {start_datetime} and {end_datetime}. Pull relevant Microsoft Service Health issues, correlate with Entra sign-in failures for sync client apps, group by error code, and report which failures match a Microsoft incident versus which users need individual remediation.
How an end user can ask Dex
My Outlook and OneDrive have been stuck syncing since this weekend - can you check if there's a problem with my account?
Manual steps (admin center)
Part 1: Check Service Health
- Sign in to the Microsoft 365 admin center with a Global Reader, Service Support Admin, or Global Admin role.
- Go to Health > Service health.
- Set the filter to All services, then check the boxes for Exchange Online, SharePoint Online, and OneDrive for Business.
- Switch the view to All active issues and also review History for the past 7 days to catch resolved weekend incidents.
- For each relevant issue, click into it and record: issue ID, title, impact statement, user impact, start/end times.
Part 2: Review sign-in failures in Entra
- Open the Microsoft Entra admin center.
- Go to Identity > Monitoring & health > Sign-in logs.
- Click Add filters and set:
- Status: Failure
- Date: Custom range covering the incident window (e.g., Saturday 00:00 to Sunday 23:59)
- Application: OneDrive, Outlook, SharePoint Online, Microsoft Office, OneNote Sync
- Review the result set. Click any row to expand and inspect the Basic info, Conditional Access, and Authentication details tabs.
- Group failures by error code:
50126: Invalid credentials (user-level, needs password reset or re-auth)50055: Password expired53003: Blocked by Conditional Access50074/50076: MFA required or failed7000215: Invalid client secret / token
- Click Download (top toolbar) to export as CSV for the incident record.
Part 3: Correlate and act
- Overlay the service health incident timeline with the sign-in failure timestamps. If failures cluster inside a Microsoft incident window, mark those tickets as "resolved: Microsoft service issue".
- For users whose failures fall outside any Microsoft incident, open each user in Entra (Users > select the user > Sign-in logs) and work to root cause (password reset, revoke sessions, review CA policy).
Microsoft Graph API
1. Active and resolved service health issues
GET https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/issues
?$filter=service in ('Exchange Online','SharePoint Online','OneDrive for Business')
&$orderby=startDateTime descResponse (trimmed):
{
"value": [
{
"id": "EX123456",
"title": "Users may be unable to sync mailbox content",
"service": "Exchange Online",
"classification": "incident",
"status": "serviceRestored",
"startDateTime": "2026-02-14T08:12:00Z",
"endDateTime": "2026-02-14T14:47:00Z",
"impactDescription": "Subset of users experienced failures syncing..."
}
]
}2. Sign-in failures during the incident window
Build filters incrementally. The Graph $filter parser rejects many compound expressions, so filter server-side by date and error, then filter app name client-side.
GET https://graph.microsoft.com/v1.0/auditLogs/signIns
?$filter=createdDateTime ge 2026-02-14T00:00:00Z and createdDateTime le 2026-02-15T23:59:59Z and status/errorCode ne 0
&$top=200
&$orderby=createdDateTime descThen in your client code, filter appDisplayName for sync clients:
const syncApps = ["OneDrive", "Outlook", "SharePoint Online", "OneNote"];
const matches = response.value.filter(s =>
syncApps.some(app => (s.appDisplayName || "").includes(app))
);3. Common error codes to group by
| Error code | Meaning | Remediation |
|---|---|---|
| 50126 | Invalid credentials | Reset password, guide user to re-sign-in |
| 50055 | Password expired | Force change at next sign-in |
| 53003 | Conditional Access blocked | Review policy, check device compliance |
| 50074 | MFA required | User must complete MFA challenge |
| 7000215 | Invalid client secret | App registration / token issue |
4. Headers and pagination
Include Authorization: Bearer {token}. For sign-ins, follow @odata.nextLink on every response until exhausted. A busy tenant can exceed 1,000 entries across a weekend.
PowerShell
Use the Microsoft.Graph module (v2+). The approach connects with the minimum required scopes, pulls service health, pulls sign-in failures for the window, correlates them by service and timestamp, and writes two CSVs plus a console summary.
Prerequisites
- PowerShell 7+ recommended
Install-Module Microsoft.Graph -Scope CurrentUser- Account with Global Reader or Service Support Administrator plus Reports Reader
- Entra ID P1 for sign-in log access
Approach
- Connect to Graph with
ServiceHealth.Read.All,AuditLog.Read.All,Directory.Read.All. - Use the date range of the incident window (for example, the most recent Saturday 00:00 to Sunday 23:59).
- Call
/admin/serviceAnnouncement/issuesand filter for Exchange, SharePoint, and OneDrive. - Call
/auditLogs/signInswith the date filter, page through every result, then filter client-side for sync app names. - Group failures by error code and user, and print a console summary.
- Write
ServiceHealth.csvandSignInFailures.csvto an output folder. - Flag users whose failures fall outside any Microsoft incident window as requiring admin action.