New answers tagged


One option may be to replace spWeb.SiteUsers.GetByEmail with spWeb.EnsureUser. Even though the documentation indicates that EnsureUser accepts a user's domain\username as a parameter, in practice I've found that an email address works as well, although this may be dependent on your environment's configuration.

Top 50 recent answers are included