问题描述
我误解了吗-看到图片了吗?
Am I misinterpreting this -- see image?
我去管理Azure AD B2C的文档,它告诉我使用Azure AD Graph API,不是 Microsoft Graph API.
I go to documentation for managing Azure AD B2C, it tells me to use Azure AD Graph API, not Microsoft Graph API.
然后,我单击链接转到Azure AD Graph API,它告诉我使用Microsoft Graph API,不是 Azure AD Graph API.
Then I click the link to go to Azure AD Graph API, it tells me to use the Microsoft Graph API, not the Azure AD Graph API.
两个问题:
- 如何使用Azure AD B2C管理用户?是Microsoft Graph API还是Azure AD Graph API?
- 根据您对问题1的回答,最简单,最轻松的与Graph API交互的方法是什么?我可以使用Postman之类的工具吗?如果我没记错的话,这些都是RESTful API.
推荐答案
如文档所述,您必须使用Azure AD Graph API . Azure AD Graph API可以管理B2C租户中的用户(设置本地帐户,登录名称),但是Microsoft Graph API目前无法执行此操作.尽管Microsoft Graph与Azure AD Graph缩小了差距,但它仍然不能像Azure AD Graph API一样具有某些功能.
As the document noted, you must use Azure AD Graph API. Azure AD Graph API can manage users in a B2C tenant (set local accounts, sign in names), but Microsoft Graph API cannot do this for now. Although Microsoft Graph closing the gap with Azure AD Graph, but it still cannot have some capabilities as Azure AD Graph API.
当然,您现在只能将Azure AD Graph API用于Azure AD B2C.
Absolutely, you can just use Azure AD Graph API for Azure AD B2C for now.
顺便说一句,如果您想知道哪种API更适合Azure AD.很难说.有时,这取决于您所处的场景.MicrosoftGraph和Azure AD Graph之间存在空白:
By the way, if you want to know which API is more fit for Azure AD. It's hard to say. Sometimes it depends on what scenario you're in. There is a sheet of Gaps between Microsoft Graph and Azure AD Graph:
Postman中可以使用两种类型的API.
Both two type APIs can be used in Postman.
有关Microsoft Graph或Azure AD Graph的更多详细信息,可以参考 此博客 .
Fore more details about Microsoft Graph or the Azure AD Graph , you can refer to this Blog.
这篇关于正确的Graph API来管理Azure AD B2C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!