Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Collection of currently logged in Users

  Asked By: Cara Oliver         Date: Jan 21, 2006      Category: Sharepoint      Views: 191
 

Is there a way to get a collection of all the currently logged in users to SharePoint Portal using OM.
This is what I'm doing
SPWeb myWeb = SPControl.GetContextWeb(Context);
string UserName = "";
foreach (SPUser curUser in myWeb.Users)
{
UserName=curUser.Name; //something here...
}


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:            

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Collection of currently logged in Users Or get search suggestion and latest updates.


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