[英]Azure AD B2C - my app has Businesses and their Employees
I'm trying to create a custom login form with Azure B2C, primarily because I need every registered user to be approved. 我正在尝试使用Azure B2C创建自定义登录表单,这主要是因为我需要每个注册用户都得到批准。 So I created a lib which has CreateUser
method and it uses Graph API to do so. 因此,我创建了一个具有CreateUser
方法的库,并使用Graph API来执行此操作。 Now, I see jobTitle
, department
, physicalDeliveryOfficeName
properties for a User ( here ) but I don't see a Company Name ! 现在,我看到一个User的jobTitle
, department
, physicalDeliveryOfficeName
属性( 在此处 ),但没有看到公司名称 !
I've found TenantDetail Entity at the same page and I'd like to know how are they related and should I create this TenantDetail Entity
first and then associate new users to it? 我在同一页面上找到了TenantDetail实体 ,我想知道它们之间的关系,我应该先创建该TenantDetail Entity
,然后将新用户关联到该TenantDetail Entity
吗?
As a reminder, this is just for having multiple users in my app which may work for a different companies (businesses). 提醒一下,这仅是为了在我的应用中拥有多个用户,这些用户可能适用于不同的公司(企业)。
Consequently, I may have Edit user details page later. 因此,以后我可能会拥有“ 编辑用户详细信息”页面。
The "TenantDetail" entity contains details for the Azure AD tenant rather than users. “ TenantDetail”实体包含Azure AD租户而不是用户的详细信息。
You should create a custom attribute for representing the company name for a registered user as described at here . 您应该按照此处所述创建自定义属性,以表示注册用户的公司名称。
You can get and set this custom attribute for the user objects using the Graph API as documented at here . 您可以获取和设置使用作为记录的图形API的用户对象这个自定义属性在这里 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.