Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm trying to use the object model of Sharepoint 2007 to make some changes over a list and read users and groups web settings...

For that I developed a Web Service (WCF) that is stored in the same web application as the sharepoint site in IIS.

Thats working.

I call inside the Web service

SPContext.Current.Web.CurrentUser

and thats user is not me, is "Sharepoint\System"

Why?

Other thing is that web I try to get all users using

SPContext.Current.Web.users

that only contain "Sharepoint\System", not the others.

WHY!!!

I give the full trust in the web.config and use the Ntlm authentication method.

share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

The Solutions is:

http://stackoverflow.com/questions/4946480/sharepoint-2007-current-user

(the name of the user of the application pool is the same as the loggin user)

share|improve this answer
add comment

Your web service is running as the SharePoint system account, taht's why you get that account as the current user.

share|improve this answer
add comment

Your Answer

 
discard

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.