Microsoft Graph Rest API V1.0:对B2C租户用户的访问 [英] Microsoft graph rest api v1.0: Access to B2C tenant users
问题描述
我不仅希望从Azure Active Directory中获得用户信息,而且还希望从Azure B2C租户用户中获得用户信息.我能够为AAD用户重现结果,但找不到有关如何访问B2C用户(例如Gmail.com)的足够资源.当我交换到该项目中的所需clientid/clientsecret(从Azure AD B2C-应用程序获取)时,出现此错误(
I want to get user information, not only from Azure Active Directory, but also from Azure B2C Tenant Users. I was able to reproduce results for AAD users, but I couldn't find enough resource as for how to access to B2C Users (e.g. Gmail.com). I get this error when I swap to my desired clientid/clientsecret (fetched from Azure AD B2C - Application) in this project (https://github.com/microsoftgraph/aspnetcore-connect-sample):
"unsupported_response_type",错误说明:"AADSTS700054:未为该应用程序启用response_type'id_token'.
'unsupported_response_type', error_description: 'AADSTS700054: response_type 'id_token' is not enabled for the application.
由于许多Azure组件已更改,因此我找不到最新的资源有帮助.非常感谢您的指导!
I couldn't find the recent resources helpful, as a lot of Azure component changed. I would greatly appreciate your kind guidance!
推荐答案
如果我正确理解了您的问题,则希望能够以编程方式对B2C用户进行CRUD.
If I understand your question correctly, you want to be able to programatically CRUD B2C Users.
AADB2C拥有使用AADGraph(而不使用Microsoft Graph)的文档
AADB2C has a documentation for same using AADGraph (and not using Microsoft Graph)