Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Cannot Access Sharepoint Website Using a Service Account

  Asked By: Nicholas    Date: Apr 21    Category: Sharepoint    Views: 1612

I developed a custom web service that uses the Sharepoint server API to
get documents for users. I had created an IIS App Pool for the web
service and the App Pool uses a domain account (ITSUser) when it starts
up. The idea is that when the web service uses the Sharepoint API, it's
identity is the user ITSUser. I also gave ITSUser the Read permission
to the Sharepoint web site. The problem is that my web service tanks
with a "Access Denied" from Sharepoint when the web service tries to
open the website. If I change the Sharepoint permission on the website
to allow all Authenticated Users, everything works fine. However, I
would like to just give permission to ITSUser. It seems that when you
use a service account, Sharepoint "ignores" its credentials. I did some
research and saw the problem from someone else, but no solution. Any
thoughts on what I'm doing wrong?



3 Answers Found

Answer #1    Answered By: Cassidy Sharpe     Answered On: Apr 21

Have you excluded you server  from Managed Paths?

Answer #2    Answered By: Peter Peterson     Answered On: Apr 21

The web service  is on a different Virtual Server so I get to the web
service fine  (no need to exclude from Managed Paths since Sharepoint
doesn't even get a chance to examine the http message). The problem
happens when I access  the sharepoint  API inside my web  service.

Answer #3    Answered By: Hans Weiss     Answered On: Apr 21

My best guess based on what little I know is that you’re not calling the API as ITSUser, you’re calling the API as the user  that called the web  service, it’s doing impersonation for you. Can you describe how you’re calling the API, are you trying to do any impersonation? What’s the user account  the web service  is being called with?

Didn't find what you were looking for? Find more on Cannot Access Sharepoint Website Using a Service Account Or get search suggestion and latest updates.

Related Topics:



Related Post