azure - 使用图形 API 创建 Azure AD B2C 社交帐户

标签 azure azure-active-directory azure-ad-b2c azure-ad-graph-api

我已添加 google 和 facebook 作为我的 Azure AD B2C 租户的身份提供商。现在我想使用 azure ad graph api 添加 google 和 facebook 的社交用户。

在 api 文档中提到“userIdentities”是必需属性,它必须有子属性“issuer”和“issuerUserId”。对于“issuer”,很清楚应该是什么值,但我无法找到如何获取identityProvider的“issuerUserId”。

它被描述为“社交身份提供商使用的唯一用户标识符”,早些时候我认为它对于身份提供商来说是唯一的,但在尝试时却并非如此。同一身份提供商的不同用户需要传递不同的值。

我浏览了https://learn.microsoft.com/en-us/azure/active-directory-b2c/claimstransformations ,所以我认为它与用户属性有关,但仍然不确定如何生成值传递到 api 调用?

如何解决?

最佳答案

我假设您指的是 user migration 的文档这里。 文档提到

Depending on the identity provider, the Issuer User ID is a unique value for a given user per application or development account. Configure the Azure AD B2C policy with the same application ID that was previously assigned by the social provider or another application within the same development account.

这里的假设是,当您从旧系统迁移用户时,您已经从 Google 和 Facebook 等社交帐户获得了这样的唯一标识符。它可以以 Base 64 编码形式使用。

这也有助于了解您的场景是什么?

关于azure - 使用图形 API 创建 Azure AD B2C 社交帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58131491/

相关文章:

php - 在 php 中生成缩略图,发布到 Azure 计算机视觉 API

asp.net - 如何使用 Azure Active Directory 作为我的 Webform 和 MVC 应用程序的身份提供程序?

azure-active-directory - 如何在 Azure Active Directory B2C 中添加具有本地名称的用户?

azure - 使用 AD Graph API 从 Azure AD B2C 管理用户 - 安全访问

Azure Blob 存储 - 下载资源时控制名称

node.js - 将内容安全策略添加到Azure Web APP

azure - 如何在Azure中配置A类型记录或IP地址到静态网站

powershell - Azure AD - 使用 SP 创建应用程序注册及其凭据

azure - 在公共(public)容器上获取​​ "AuthorizationPermissionMismatch"

azure-ad-b2c - STS 在 Azure AD B2C 上下文中意味着什么