Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

How get the User email id using Sharepoint Object Model

  Asked By: Oliver Nunez         Date: Jan 27, 2007      Category: Sharepoint      Views: 1380
 

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.

Tagged:                    

 

2 Answers Found

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

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, 2007       

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].