关于Microsoft Graph API在GCC High环境中的终结点问题,以下是系统性分析和解决方案:
https://graph.microsoft.us
(商业版为 https://graph.microsoft.com
)。若误用商业版终结点,所有请求将失败。https://graph.microsoft.us/User.Read
)。https://login.microsoftonline.us
)。GET https://graph.microsoft.us/v1.0/me
Authorization: Bearer <GCC_High_Access_Token>
若返回404或401,检查终结点是否正确。
https://portal.azure.us
)注册应用。var scopes = new[] { "https://graph.microsoft.us/User.Read" };
var client = ConfidentialClientApplicationBuilder
.Create("<client_id>")
.WithAuthority(AzureCloudInstance.AzureUsGovernment, "<tenant_id>")
.WithClientSecret("<client_secret>")
.Build();
var token = await client.AcquireTokenForClient(scopes).ExecuteAsync();
GCC High适用于:
https://portal.azure.us
)中的认证错误。通过以上步骤,可系统性定位并解决GCC High终结点不可用的问题。
没有搜到相关的文章