Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How get the User email id using Sharepoint Object Model

  Asked By: Oliver    Date: Jan 27    Category: Sharepoint    Views: 11239

Is the any code to get the login user's email id using .net

Currently i am using the LDAP and hitting the Active directory to fetch the
all the user's details.

Is it possible using sharePoint Object model for The user's which is
available in Site. or any other alternative.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Kerri Steele     Answered On: Jan 27

If you use the AllUsers collection of the SPSite object  (Site
Collection) you can walkthrough the users  defined for a site. Each user
has an email  property. This should have a valid email address. It's
the one that would be used for things like alerts etc.

 
Answer #2    Answered By: Alisha Itagi     Answered On: Jan 27

Check out the UserGroup web service / GetUserCollectionFromSite
method:

UserGroup Class (Users and Groups)
msdn2.microsoft.com/en-us/library/ms772575.aspx

UserGroup.GetUserCollectionFromSite Method (Users and Groups)
msdn2.microsoft.com/en-us/library/ms772702.aspx

 
Didn't find what you were looking for? Find more on How get the User email id using Sharepoint Object Model Or get search suggestion and latest updates.




Tagged: