Guest User

Untitled

a guest
Feb 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // Add the user.
  2. User user = await graphClient.Users.Request().AddAsync(new User
  3. {
  4. AccountEnabled = true,
  5. DisplayName = Resource.User + guid.Substring(0, 8),
  6. MailNickname = alias,
  7. PasswordProfile = new PasswordProfile
  8. {
  9. Password = Resource.Prop_Password
  10. },
  11. UserPrincipalName = alias + "@" + domain
  12. });
Add Comment
Please, Sign In to add comment