About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
macOS Mail that uses Exchange Web Services fails when the tenant allow list does not include Apple Internet Accounts. Apple publishes the App ID. Microsoft Learn documents how EwsAllowedAppIDs, EwsEnabled and the X-EWS-Policy-Reason header decide whether EWS is allowed. Change the organisation list only after you save what is there now.
What the symptom means
Apple's administrator note on HT149092 says Exchange administrators must confirm EWS is enabled and add Apple Internet Accounts to their EWS allow list, and states:
The App ID for Apple Internet Accounts is:
f8d98a96-0999-43f5-8af3-69971c7bb423
Microsoft Learn "Control access to EWS in Exchange" shows that application-ID allow lists are set with Set-OrganizationConfig -EwsAllowedAppIDs, and that when EwsEnabled is set to True, only the Application IDs in that list can use EWS. Learn's page warns that the way the EwsEnabled parameter operates changes in October 2026 due to EWS deprecation; check the current Learn page for the live wording.
When these controls block a request, Exchange Online returns HTTP 403 Forbidden with X-EWS-Policy-Reason. Microsoft Learn documents exactly two values for that header:
EWS is disabled for this user or tenantEWS is blocked by policy for this user or tenant
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
Apple App ID missing from EwsAllowedAppIDs |
macOS Mail cannot sign in; other listed apps may work | Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy |
EwsEnabled false for organisation or mailbox |
Header EWS is disabled for this user or tenant |
Organisation and Get-CASMailbox EwsEnabled |
| User-Agent allow/block policy | Same blocked-by-policy header as App ID blocks | EwsApplicationAccessPolicy, EwsAllowList, EwsBlockList |
| Change not yet cached | Still blocked right after a correct Set | Learn: up to 24 hours for EwsAllowedAppIDs |
Prove the cause before changing anything
1. Inspect the response header when you have an EWS trace: HTTP 403 and the exact X-EWS-Policy-Reason string. Microsoft Learn:
An HTTP 403 status alone does not establish that EWS disablement or one of these application policies caused the failure.
The diagnostic messages identify the access-control blocks on that Microsoft Learn page.
2. Read organisation configuration:
Get-OrganizationConfig |
Format-List EwsEnabled,EwsApplicationAccessPolicy,EwsAllowList,EwsBlockList
Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy |
Format-List EwsAllowedAppIDs
3. Read the mailbox:
Get-CASMailbox -Identity adam@contoso.com |
Format-List EwsEnabled
Replace the identity with the affected user. Enabling EWS on the mailbox does not override organisation-wide disablement.
4. Compare the allow list with Apple's App ID f8d98a96-0999-43f5-8af3-69971c7bb423.
Fix
Save the current configuration to files before any Set-OrganizationConfig:
Get-OrganizationConfig |
Format-List EwsEnabled,EwsApplicationAccessPolicy,EwsAllowList,EwsBlockList > ews-org-before.txt
Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy |
Format-List EwsAllowedAppIDs > ews-allowed-app-ids-before.txt
Get-CASMailbox -Identity adam@contoso.com |
Format-List EwsEnabled > ews-mailbox-before.txt
Use the real mailbox identity in the third command.
Risk: the next commands change organisation-wide EWS enablement and replace the tenant EwsAllowedAppIDs list. Applications omitted from the new list lose EWS access. Microsoft Learn: "Changes to EwsAllowedAppIDs can take up to 24 hours to take effect because of caching." On organisation disablement Learn states: "Disabling EWS in the organization also disables per-user EWS overrides."
If the header was EWS is disabled for this user or tenant, correct the applicable EwsEnabled setting first. Microsoft Learn's organisation allow example:
Set-OrganizationConfig -EwsEnabled:$true
Do not expect an allow-list edit alone to restore access while EWS remains disabled.
If the header was EWS is blocked by policy for this user or tenant, merge Apple's App ID into the existing list. Read the IDs from ews-allowed-app-ids-before.txt, keep every ID you still need, add f8d98a96-0999-43f5-8af3-69971c7bb423 if it is missing, and set the full comma-separated string back. Microsoft Learn's application-ID example form:
# Sample GUIDs from Microsoft Learn only — replace with your real merged list
Set-OrganizationConfig -EwsAllowedAppIDs "11111111-2222-3333-4444-555555555555,aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
Replace the sample GUIDs with your merged production list. The Set-OrganizationConfig cmdlet reference shows the same pattern with -EwsEnabled $true alongside -EwsAllowedAppIDs, and states that $null for EwsAllowedAppIDs removes the application ID restriction.
Microsoft Learn also notes that EwsAllowedAppIDs and the User-Agent allow/block lists are both evaluated, and both must pass. If EwsApplicationAccessPolicy is EnforceAllowList, required user agents must remain in EwsAllowList.
To undo it: set the organisation values back from ews-org-before.txt and ews-allowed-app-ids-before.txt. Restore EwsAllowedAppIDs to the exact saved list string. If the saved allow-list file showed no application IDs and you need to remove the restriction entirely, the Set-OrganizationConfig reference says to use $null for EwsAllowedAppIDs. Restore mailbox EwsEnabled from ews-mailbox-before.txt only if you changed the mailbox. Allow up to 24 hours before deciding the undo failed.
Example (illustrative): X-EWS-Policy-Reason is EWS is blocked by policy for this user or tenant. The saved allow list has two GUIDs and not Apple's. The administrator writes a three-GUID string that includes f8d98a96-0999-43f5-8af3-69971c7bb423, leaves EwsEnabled true, and Mail works after the cache window.
Confirm the fix
Get-OrganizationConfig -RetrieveEwsOperationAccessPolicyshows Apple's App ID.- Organisation
EwsEnabledis not false when EWS should be available. - macOS Mail can sign in and sync for a test user.
- Immediate retries that still fail are checked again after Microsoft Learn's caching window.
What to watch afterwards
- Adding one App ID must not drop others; always merge from the saved file.
- User-Agent
EnforceAllowListcan still block a client whose App ID is allowed. - Apple expects a Graph API client on a future macOS 27 update; keep the allow list accurate until that move is complete.
Read next
Related articles you may want next.
- TroubleshootingmacOS Mail cannot sign in to Microsoft Exchange: EWS and Apple Internet AccountsmacOS Mail no longer signs in to Microsoft Exchange. Confirm EWS is enabled and add Apple Internet Accounts App ID f8d98a96-0999-43f5-8af3-69971c7bb423.Read article
- TroubleshootingHow to add a Microsoft Exchange account on iPhone (ActiveSync)Add Microsoft Exchange on iPhone with Apple's ActiveSync steps, Sign In versus Configure Manually, and Stolen Device Protection.Read article
- Troubleshooting550 5.7.64 TenantAttribution; Relay Access Denied: an application server can't relay through Microsoft 365550 5.7.64 TenantAttribution; Relay Access Denied: find why Microsoft 365 no longer recognises your server and fix the connector or certificate.Read article
Risks and limits
- A blank or incomplete
EwsAllowedAppIDswrite can lock out every EWS application that previously worked. - The blocked-by-policy header does not say whether App ID or User-Agent policy failed.
- These EWS allow-list steps do not change SMTP relay or tenant attribution behaviour.
Sources
- Control access to EWS in Exchange — Microsoft Learn, Last updated on 2026-10-07, accessed 1 December 2026
- Set-OrganizationConfig — Microsoft Learn, no date shown on the opened view, accessed 1 December 2026
- If you can no longer sign in with a Microsoft Exchange account on macOS — Apple, Published Date October 13, 2026, accessed 1 December 2026
This article was originally published on .