Fix the Office 365 Management API Unrecognized GUID Format Error
Question details
Resolve a .NET FormatException when calling the Office 365 Management API ServiceComms CurrentStatus endpoint with an OAuth token.

- Product
- Office 365 Management API
- Device & OS
- not provided
- Scenario
- An application requests an OAuth access token and uses it to retrieve service status for a Microsoft 365 tenant.
- Observed behavior
- The CurrentStatus request returns an unrecognized GUID format error when the token lacks the expected tenant information or permissions.
Identify the Microsoft Entra tenant ID or tenant DNS name used by the application, and locate its app registration. Check the token without sharing it publicly; access tokens are credentials.
Request a tenant-specific token and verify its permissions
Use this approach when a token requested through the common endpoint has no roles or does not identify the expected tenant.
A token without the expected tenant information or permissions can trigger a misleading server-side GUID format error. Request a new token after correcting the tenant and granting permissions.
In the Microsoft Entra admin center, open Identity > Overview and note the tenant ID or primary domain name.
Go to Identity > Applications > App registrations, select your app, and open API permissions. Add the Office 365 Management APIs permissions needed for the ServiceComms request, then grant admin consent where required.
In the OAuth token request URL, replace common with the tenant ID or tenant DNS name. Request a token for the Office 365 Management API resource using the flow appropriate for your application.
Decode the new access token securely and check that its tid and aud claims identify the expected tenant and API. For an application-permission token, confirm that the roles claim includes the required permissions.
Call the ServiceComms CurrentStatus endpoint again with the new token in the Authorization: Bearer header. Verify that the tenant ID in the API request is a valid GUID for the intended tenant.

Use WPS Office as an alternative for everyday document work
WPS Office is a free, lightweight alternative for working with office files. Its familiar interface and Microsoft Office format compatibility make it easy to move existing documents, spreadsheets, and presentations. It does not fix the Microsoft 365 Management API error.

Frequently Asked Questions
Why does using common cause this API error?
In the reported case, using common produced a token without the required roles. Requesting a token with the tenant DNS name supplied the expected tenant context and permissions.
Where can I find my tenant ID?
In the Microsoft Entra admin center, open Identity > Overview and copy the tenant ID. Use it in the token request and, where required, in the API request URL.
How do I check whether my app has the right API permissions?
Open Microsoft Entra admin center > Identity > Applications > App registrations, select the app, and review API permissions. Grant admin consent if the required permissions need it, then request a new token.
Why is the roles claim missing from my access token?
The token may have been requested with the wrong tenant or without the required application permissions. Check the token request and app registration; if you use delegated permissions, inspect the scp claim instead.




