Q: I have a requirement to send an email to the current logged in user,what is the API which will help me to retrieve the email address of the current user?
A: Use the following API call to get the user details.
UserDetails user = UserDetailsProxy.GetUserDetailsByUserId(UserIdentity.UserId); string userEmailId = user.MembershipDetails.EmailId;
In case If the user name and email id are same, then use the UserIdentity.
string userEmailId = UserIdentity.LoggedInUserName;