Just wondering if there was plans to add the ability to Add the users email to the UserPart for this module, I added it my self inside the CreateUserForActiveDirectoryIfNotExists method using the following, but was just wondering if there was a plan to add it into the library..? I know it's not great, but it works for the situation we are using it for..
string[] domainAndUserName = activeDirectoryUser.UserName.Split('\\');
string email = "";
if (domainAndUserName.Length == 2)
{
PrincipalContext ctx = new PrincipalContext(ContextType.Domain, domainAndUserName[0]);
UserPrincipal up = UserPrincipal.FindByIdentity(ctx, activeDirectoryUser.UserName);
if (up != null)
email = up.EmailAddress.ToLowerInvariant();
}
CreateUser(new CreateUserParams(activeDirectoryUser.UserName, "password", email, String.Empty, String.Empty, true));
Just wondering if there was plans to add the ability to Add the users email to the UserPart for this module, I added it my self inside the CreateUserForActiveDirectoryIfNotExists method using the following, but was just wondering if there was a plan to add it into the library..? I know it's not great, but it works for the situation we are using it for..