Need information on Microsoft Message Trace GCC Support to request OAuth Token

Tanmoy Satpati 20 Reputation points
2025-02-05T16:04:23.45+00:00

I'm exploring MessageTrace report API: https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace, I can see that, to generate OAuth Token I need to make a GET call to: https://login.windows.net/<tenant-id>/oauth2/token . Does login.windows.net base URL/domain available worldwide including GCC or it needs separate authentication/custom domain for GCC?

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,711 questions
Microsoft Exchange Online
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,244 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,739 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
566 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xintao Qiao-MSFT 6,270 Reputation points Microsoft Vendor
    2025-02-06T02:44:33.6766667+00:00

    Hi, @Tanmoy Satpati

    When using Azure AD in a public (commercial) cloud scenario, legacy endpoints like login.windows.net (and its more current equivalent, login.microsoftonline.com) are globally available for authenticating users. However, government clouds (such as the U.S. Government Community Cloud [GCC]) are isolated from the public cloud and have their own dedicated endpoints.

    For GCC (and other sovereign or government clouds), you typically must use the service-specific endpoints. For example, for Azure Government the endpoints are in the login.microsoftonline.us domain rather than login.windows.net or login.microsoftonline.com. This separation helps ensure compliance with regional and governmental regulations.

    So if you’re targeting GCC, you’ll need to update your authentication configuration to use the correct endpoint for that environment rather than relying on login.windows.net.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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