---
title: "GCC High email API: what changes per cloud · Workwae"
description: "What changes for Microsoft 365 GCC High and DoD: separate sign-in and Graph hosts, an app registration per cloud, admin consent and API gaps."
url: https://workwae.com/blog/gcc-high-email-api
---

Blog

# GCC High email API: what changes per Microsoft cloud.

Microsoft 365 [GCC High](https://workwae.com/glossary#gcc-high) and [DoD](https://workwae.com/glossary#dod) have their own sign-in and Graph hosts, so an email integration needs its own app, tokens and endpoints for each cloud.

October 17, 2026 · 6 min read

- [Government clouds](https://workwae.com/blog/tag/government)
- [Microsoft Graph](https://workwae.com/blog/tag/microsoft-graph)
- [OAuth](https://workwae.com/blog/tag/oauth)

If your product reads mail or calendars through Microsoft Graph, a customer in GCC High or DoD is not one configuration flag away. Their tenant lives in a separate instance of Microsoft’s cloud, with its own sign-in service, its own Graph host and its own app registrations. This article lists what actually changes, from Microsoft’s documentation and from what Workwae’s provider code does for each cloud.

## Four clouds, and where GCC fits.

Microsoft describes its national clouds as physically and logically network-isolated instances of its enterprise services ([Microsoft Graph national cloud deployments](https://learn.microsoft.com/en-us/graph/deployments)). For mail and calendars there are four environments to plan for:

- **Worldwide, including GCC:** sign-in at `login.microsoftonline.com`, Graph at `graph.microsoft.com`.
- **GCC High:** sign-in at `login.microsoftonline.us`, Graph at `graph.microsoft.us`.
- **DoD:** sign-in at `login.microsoftonline.us`, Graph at `dod-graph.microsoft.us`.
- **21Vianet (China):** sign-in at `login.chinacloudapi.cn`, Graph at `microsoftgraph.chinacloudapi.cn`.

GCC (moderate) is the one that surprises people: Microsoft tells GCC developers to keep using the worldwide endpoints, so a GCC tenant behaves like a commercial one. GCC High and DoD share a sign-in host but not a Graph host. Personal Microsoft accounts exist only in the worldwide cloud.

Exchange Online has its own hosts as well. IMAP is `outlook.office365.us` in GCC High and `outlook-dod.office365.us` in DoD ([GCC High endpoints](https://learn.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-u-s-government-gcc-high-endpoints), [DoD endpoints](https://learn.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-u-s-government-dod-endpoints)). Both clouds receive mail through `protection.office365.us`, so an MX lookup tells you a domain is in a US government cloud but not which one. Ask the customer.

## One app registration per cloud.

Microsoft’s identity documentation is explicit: to use the identity platform in a national cloud, you are required to register your application separately in that cloud’s portal ([National clouds](https://learn.microsoft.com/en-us/entra/identity-platform/authentication-national-cloud)). For US government that is `portal.azure.us`. An app registered in the worldwide portal does not exist in GCC High, and its client id means nothing to `login.microsoftonline.us`.

Tokens follow the same line. Access tokens acquired for one national cloud are not interchangeable with those of the global service or any other cloud. Three consequences for your code:

- **Scopes name the cloud’s Graph root.** Workwae asks a GCC High user for `https://graph.microsoft.us/Mail.ReadWrite`, with `Mail.Send` and `User.Read` under the same prefix, and adds calendar and contacts scopes only when those features are on.
- **The issuer changes.** An ID token from GCC High or DoD is issued by `https://login.microsoftonline.us/{tenant}/v2.0`, so issuer checks written for the worldwide host reject it.
- **Stored grants need a cloud.** A [refresh token](https://workwae.com/glossary#refresh-token) refreshes only against the cloud and app that issued it, so the cloud has to be stored with every account and every app.

With Workwae, you register your Entra app once per cloud and say which cloud it belongs to. Users then sign in from your own interface:

gcc-high.tsgcc-high.py

```ts
const app = await workwae.oauthApps.create({
  provider: "microsoft",
  cloud: "gcc-high",
  name: "Example Mail",
  clientId: process.env.ENTRA_CLIENT_ID!,
  clientSecret: process.env.ENTRA_CLIENT_SECRET!,
  authority: process.env.ENTRA_DIRECTORY_ID!,
});

const { authorizeUrl } = await workwae.oauthAuthorizations.create({
  provider: "microsoft",
  oauthAppId: app.id,
  redirectUri: "https://app.example.com/mail/connected",
  externalRef: user.id,
  state: csrfToken,
  options: { calendarEnabled: true },
});
```

```python
import os

app = workwae.oauth_apps.create(
    provider="microsoft",
    cloud="gcc-high",
    name="Example Mail",
    client_id=os.environ["ENTRA_CLIENT_ID"],
    client_secret=os.environ["ENTRA_CLIENT_SECRET"],
    authority=os.environ["ENTRA_DIRECTORY_ID"],
)

authorization = workwae.oauth_authorizations.create(
    provider="microsoft",
    oauth_app_id=app.id,
    redirect_uri="https://app.example.com/mail/connected",
    external_ref=user.id,
    state=csrf_token,
    options={"calendar_enabled": True},
)
print(authorization.authorize_url)
```

The account takes the app’s cloud, and every call for it goes to that cloud’s hosts. A refresh token your GCC High app already holds connects the same way, through `accounts.create` with the app’s id ([Connect flows](https://workwae.com/features/connect)).

## Admin consent and app-only access.

Many government tenants block user consent, so an administrator approves the app for the whole directory. The [admin consent](https://workwae.com/glossary#admin-consent) endpoint has the same shape in every cloud, `/{tenant}/v2.0/adminconsent` on the cloud’s sign-in host ([Admin consent protocols](https://learn.microsoft.com/en-us/entra/identity-platform/v2-admin-consent)), but the scope it grants is the cloud’s own: `https://dod-graph.microsoft.us/.default` for a DoD app. Application tokens then come from the same host through the client credentials grant, for the same `.default` scope.

Workwae calls these organization connections. You register the app with its cloud, send an administrator to the consent URL, and test the connection before adding mailboxes ([Organization connections](https://workwae.com/features/organizations)):

dod-consent.tsdod-consent.py

```ts
const connection = await workwae.orgConnections.create({
  kind: "microsoft_app",
  name: "Contoso (DoD)",
  cloud: "dod",
  credential: { type: "client_secret", clientId, clientSecret },
});

// Send the administrator here
const { consentUrl } = await workwae.orgConnections.consent({
  connectionId: connection.id,
  redirectUri: "https://app.example.com/admin/consent-done",
  state: tenantRef,
});

// After consent: request a token the way accounts will
const { checks } = await workwae.orgConnections.test({ connectionId: connection.id });
```

```python
connection = workwae.org_connections.create(
    kind="microsoft_app",
    name="Contoso (DoD)",
    cloud="dod",
    credential={"type": "client_secret", "client_id": client_id, "client_secret": client_secret},
)

# Send the administrator here
consent = workwae.org_connections.consent(
    connection_id=connection.id,
    redirect_uri="https://app.example.com/admin/consent-done",
    state=tenant_ref,
)
print(consent.consent_url)

# After consent: request a token the way accounts will
result = workwae.org_connections.test(connection_id=connection.id)
print(result.checks)
```

The test reports each check, so a missing permission shows up before a mailbox does. Certificate credentials work as well as client secrets.

## What behaves differently.

Most of Graph’s mail and calendar surface is the same in GCC High and DoD. Each Graph API reference page lists the national clouds it is available in, and a few rows matter for an email integration:

- **Permanent delete.** `permanentDelete` on a message is available only in the global service ([message: permanentDelete](https://learn.microsoft.com/en-us/graph/api/message-permanentdelete)). In GCC High and DoD, Workwae falls back to `DELETE`, which moves the message to Recoverable Items instead of purging it.
- **Message delta.** `message: delta` is available in GCC High and DoD but not in 21Vianet ([message: delta](https://learn.microsoft.com/en-us/graph/api/message-delta)). That is why Workwae syncs 21Vianet mail over IMAP and SMTP with Microsoft sign-in, and GCC High and DoD mail over Graph.
- **Change notifications.** Where a cloud lacks them, Workwae’s scheduled poll keeps the account current.
- **Teams meetings.** Graph reports which online meeting providers each calendar allows. Workwae adds a Teams meeting to an event only when the calendar lists `teamsForBusiness`, and otherwise refuses the request rather than create an event without a link.
- **Tooling.** Graph Explorer is not supported in GCC High or DoD, so test calls go through your own app registration.

## How Workwae handles it.

- Every Microsoft account and OAuth app records its cloud: `global`, `gcc-high`, `dod` or `china`. GCC tenants use `global`.
- Sign-in, token refresh, Graph, IMAP and SMTP for an account all use its cloud’s hosts, and tokens never cross clouds.
- You bring your own app registration per cloud, or use Workwae’s where we run one by passing `microsoftCloud``microsoft_cloud` to a hosted connect session or a headless authorization. A cloud without a Workwae app answers `provider_not_configured`.
- Government and commercial accounts share one workspace and the same SDK calls, and `account.connected` tells your backend which cloud each account is in.

account.connected

```jsonc
// Your webhook, when the account is ready (abridged)
{
  "type": "account.connected",
  "data": {
    "email": "ada@agency.example",
    "provider": "graph",
    "cloud": "dod",
    "externalRef": "user-42",
    "reauthorized": false
  }
}
```

The [government use case](https://workwae.com/use-cases/government) summarizes the same setup, and the [quickstart](https://workwae.com/quickstart) goes from API key to first sent message.

## Limits.

Check these against your contract and your customers’ requirements before you build:

- **No FedRAMP authorization.** Workwae holds no FedRAMP or other government authorization, and claims no certification.
- **Not in a government cloud region.** Data is stored and processed in the United States, not in a government region ([Subprocessors](https://workwae.com/subprocessors)).
- **Commercial Zoom and Webex only.** Meetings are created through the commercial Zoom and Webex services; their government services are not supported.
- **SOC 2 planned, not started.** The audit has not begun.
- **Hosted only.** There is no self-hosted or on-premises option.

If those fit, the per-cloud work above is what Workwae takes off your hands. [How Workwae compares](https://workwae.com/compare) shows which other email APIs document national cloud support.

## More from the blog.

### [Why mailbox refresh tokens stop working.](https://workwae.com/blog/why-refresh-tokens-stop-working)

November 23, 2026 · 6 min read

invalid_grant, AADSTS codes, Testing-mode expiry, outages versus revocation, and reconnecting an account without losing it.

Tags: OAuth, Gmail, Microsoft Graph

### [Gmail API vs IMAP: authorization, sync, quotas and labels.](https://workwae.com/blog/gmail-api-vs-imap)

November 18, 2026 · 8 min read

Scopes and CASA, XOAUTH2 and app passwords, history and Pub/Sub against UIDs and IDLE, quota units against bandwidth, and when each fits.

Tags: Gmail, Sync and push, OAuth

### [Shared mailboxes in Microsoft 365 and Google Workspace.](https://workwae.com/blog/shared-mailboxes-microsoft-365-google-workspace)

November 16, 2026 · 6 min read

Shared mailboxes, Send As, Gmail delegation, send-as aliases, Google Groups and domain-wide delegation.

Tags: Microsoft Graph, Gmail, OAuth
