更正图 API 以管理 Azure AD B2C

Correct Graph API to manage Azure AD B2C

我是不是误解了这个 -- 看图片?

我查看了管理 Azure AD B2C 的文档,它告诉我使用 Azure AD Graph API,不是 Microsoft Graph API。

然后我单击 link 转到 Azure AD Graph API,它告诉我使用 Microsoft Graph API,not Azure AD 图 API.

两个问题:

  1. 我使用什么来管理 Azure AD B2C 中的用户? Microsoft Graph API 或 Azure AD Graph API?
  2. 根据您对问题 1 的回答,我应该使用哪种与 Graph 交互的最简单、最轻松的方式 API?我可以使用像 Postman 这样的工具吗?如果我没记错的话,这些是 RESTful APIs.

What do I use to manage users in Azure AD B2C? Microsoft Graph API or Azure AD Graph API?

如文档所述,您必须使用 Azure AD Graph API。 Azure AD Graph API 可以管理 B2C 租户中的用户(设置本地帐户、登录名称),但 Microsoft Graph API 目前无法执行此操作。虽然 Microsoft Graph 缩小了与 Azure AD Graph 的差距,但它仍然无法具备 Azure AD Graph 的某些功能 API.

What's the easiest and most painless way to interact with the Graph API I should be using -- based on your answer to question #1? Can I use a tool like Postman? If I'm not mistaken, these are RESTful APIs.

当然,您现在可以只将 Azure AD Graph API 用于 Azure AD B2C。

顺便说一下,如果你想知道哪个API更适合Azure AD。这很难说。有时这取决于您所处的场景。Microsoft Graph 和 Azure AD Graph 之间存在 sheet 个差距:

两种类型 APIs 都可以在 Postman 中使用。

关于Microsoft Graph 或 Azure AD Graph 的更多详细信息,您可以参考this Blog