Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Collection of currently logged in Users

  Asked By: Cara    Date: Jan 21    Category: Sharepoint    Views: 796

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...
}

Share: 

 

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.




Tagged: