Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add the user.
- User user = await graphClient.Users.Request().AddAsync(new User
- {
- AccountEnabled = true,
- DisplayName = Resource.User + guid.Substring(0, 8),
- MailNickname = alias,
- PasswordProfile = new PasswordProfile
- {
- Password = Resource.Prop_Password
- },
- UserPrincipalName = alias + "@" + domain
- });
Add Comment
Please, Sign In to add comment