我应该使用哪个 Azure Active Directory Graph API?

Which Azure Active Directory Graph API should I use?

我最近发现有 两个 图 API 可用于 Azure Active Directory。有统一的 graph.microsoft.com 和 AAD 特定的 graph.windows.net:

Azure AD Graph API functionality is also available through Microsoft Graph, a unified API that also includes APIs from other Microsoft services like Outlook, OneDrive, OneNote, Planner, and Office Graph, all accessed through a single endpoint with a single access token.

Source

当我只需要浏览 AAD 对象时,是否有理由使用统一图 API? AAD 特定 graph.windows.net GraphAPI 会被弃用吗?

没有关于 Azure AD Graph API 弃用的公告,我们(和其他人)每天都在生产中使用它。

如果你可以通过 Azure AD Graph API 得到你想要的东西,我会说使用它。如果您需要 Microsoft Graph API 中的其他内容(如电子邮件或联系人),请使用那个。