Microsoft graph rest api v1.0:访问B2C租户用户 [英] Microsoft graph rest api v1.0: Access to B2C tenant users

查看:26
本文介绍了Microsoft graph rest api v1.0:访问B2C租户用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取用户信息,不仅来自 Azure Active Directory,还来自 Azure B2C 租户用户.我能够为 AAD 用户重现结果,但我找不到足够的资源来了解如何访问 B2C 用户(例如 Gmail.com).当我在此项目 (https://github.com/microsoftgraph/aspnetcore-connect-sample):

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', error_description: '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)

使用 Graph API 构建用户 CRUD 操作

这篇关于Microsoft graph rest api v1.0:访问B2C租户用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆