1

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

Thanks.

3
SPUtility.GetLoginNameFromEmail 

can be used to get login name.

SPUtility.GetIdentifierFromEmail 

can be used to get user id.

  • Thanks for sharing. but it has been deprecated & we can use SPUtility.ResolvePrincipal instaed. – SP Developer Feb 13 '18 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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