1

i have an Email address of particular user. Now i want the SP username of that particular email address programatically.

Thanks.

1 Answer 1

3
SPUtility.GetLoginNameFromEmail 

can be used to get login name.

SPUtility.GetIdentifierFromEmail 

can be used to get user id.

1
  • Thanks for sharing. but it has been deprecated & we can use SPUtility.ResolvePrincipal instaed. Feb 13, 2018 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.