在不使用注册策略的情况下为B2C创建用户. [英] Create users for B2C without using a sign up policy.

查看:62
本文介绍了在不使用注册策略的情况下为B2C创建用户.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在不使用注册策略的情况下为B2C创建用户的受支持方法是什么?

What is the supported method for creating users for B2C without using a sign-up policy?

我正在尝试开发仅具有登录政策的应用程序.据我所知,为b2c创建新用户的受支持方法是使用用户页面上的新用户对话框以及图形api.这样对吗?我有办法吗 失踪?首选方法是什么?

尝试在新用户对话框中创建用户时,用户名格式错误,例如. username@domain.com变为username_domain.com#EXT#@domain.com

使用图api创建新用户的推荐方法是什么?

I am attempting to develop an app with only a sign in policy. To the best of my knowledge the supported methods of creating new users for b2c are using the new user dialog on the users page, and with the graph api. Is this correct? Is there a method I'm missing? Which is the preferred method?

When attempting to create users in the new user dialog, usernames become malformed, eg. username@domain.com becomes username_domain.com#EXT#@domain.com

What is the recommended method for using the graph api to create new users?

推荐答案

你好简,

您可以使用Azure Portal/Graph API/Powershell创建两种类型的用户.

You can create two types of users using Azure Portal/ Graph API / Powershell. 

1)类型成员的用户.您将不得不使用新用户"用户可以从门户网站上执行此操作.用户可以具有经过验证的自定义域(user@domain.com)或租户名称作为其UPN后缀(user@tenant.onmicrosoft.com).

1) Users of type Members. You would have to use "New User" UI from the portal to do this. Users can have either a verified custom domain (user@domain.com) or tenant name as their UPN suffix(user@tenant.onmicrosoft.com).

2)类型Guest的用户.您将必须使用新访客用户"为此,您将在门户网站的UI上看到UPN获得标签"#EXT".与已验证的域名/租户名称一起添加到其中.

2) Users of type Guests . You would have to use "New Guest User" UI from the portal for this and this is where you will see the that UPN gets the tag "#EXT" added to it along with the verified domain / tenant name.

在您的情况下,您只希望用户登录,则必须决定是为用户创建成员帐户还是使用他们现有的电子邮件地址邀请他们作为来宾用户使用,或者为他们创建消费者帐户.在此文章中进行检查 每种类型的帐户及其创建方式的详细概述.

In your scenario, where you just the want the users to sign in, you would have to decide whether to create member accounts for the users or invite them as guest users using their existing email address or create consumer accounts for them. Check this article for detailed overview of each type of account and how to create them.

Powershell

新用户:https://docs.microsoft.com/en-us/powershell/azure/active-directory/new-user-sample?view = azureadps-2.0

New user : https://docs.microsoft.com/en-us/powershell/azure/active-directory/new-user-sample?view=azureadps-2.0

新来宾用户:https://docs.microsoft.com/zh-cn/azure/active-directory/b2b/code-samples?view = azureadps-2.0#powershell-example

New Guest User: https://docs.microsoft.com/en-us/azure/active-directory/b2b/code-samples?view=azureadps-2.0#powershell-example

图形API:您可以使用图形资源管理器(aka.ms/ge)进行图形调用,也可以使用Fiddler,Postman之类的工具进行调用

Graph API : You can use Graph Explorer (aka.ms/ge) to make the graph calls or use tools like Fiddler,Postman for making the calls

新用户:https://docs.microsoft.com/en-us/graph/api/user-post-users?view = graph-rest-1.0

New user : https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0

新来宾用户:https://docs.microsoft.com/en-us/graph/api/invitation-post?view = graph-rest-1.0

New Guest User: https://docs.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0

所有这些方法将在B2C Azure AD租户中将用户创建为本地帐户.如果要创建供用户在B2C方案中使用的社交帐户,则必须按照所述的步骤进行操作

All these methods will create users as local accounts in your B2C Azure AD tenant. If you want to create social accounts for users to use in B2C scenarios then you would have to follow the steps described here and leverage Graph API.

希望这会有所帮助.


这篇关于在不使用注册策略的情况下为B2C创建用户.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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