3

我可以创建用户:

User user = new User();
user.accountEnabled = true;
user.displayName = "some name";
user.mailNickname = "some-nick";
user.userPrincipalName = "upn@contoso.com";
PasswordProfile passwordProfile = new PasswordProfile();
passwordProfile.forceChangePasswordNextSignIn = false;
passwordProfile.password = "randompassword";
user.passwordProfile = passwordProfile;


User userCreated = graphClient.users()
                .buildRequest()
                .post(user);

如何使用在 Azure AD B2C 中创建的自定义属性创建用户:https ://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-custom-attr ?

4

0 回答 0