Creating test users for Azure AD B2C

戏子无情 提交于 2019-12-06 06:13:11

问题


Is there a way to programmatically create users for testing with Azure AD B2C? The only way to create users that I am aware of is through website signup. Am I missing something?


回答1:


Yes, Azure AD B2C Graph API allows CRUD operations on users.

You can create a user by sending a "POST" request to the /users endpoint.

The following documentation demonstrates this with a "B2CGraphClient" utils written in C# : Azure AD B2C: Use the Graph (see GitHub link in the page to download the sample code)

Please note there are two types of user account in Azure AD B2C : "local accounts" and "work or school accounts". Required parameters vary upon the account type you need.



来源:https://stackoverflow.com/questions/39195452/creating-test-users-for-azure-ad-b2c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!