SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is that possible to find the share point site current logged In user information ?

I find many reference in net it show only current user (single user info only).

share|improve this question
up vote 2 down vote accepted

Tried this?

using(SPWeb oWeb = SPContext.Current.Site.OpenWeb(guidWebsite))
    SPUser oUser = SPContext.Current.Web.CurrentUser;

If I misunderstood your question, and you are asking about retrieving the number of currently logged in users, Bjorn Furuknap has previously written about this here:

share|improve this answer

Can you exmplain that what do you mean by this: "in net it show only current user"

Do you want to reterieve a single user info or all logged in user information?

If current logged in user information is required then you can use the above code as highlighted by James but in case you need all the logged in users then I am not really sure that you can get this via SP api.

share|improve this answer
no i need all the people who are in online in that particular site – My Name is Suresh Oct 7 '10 at 9:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.