Sharepoint File server Access denied

R, Lamar 96 Reputation points
2020-11-05T18:24:13.657+00:00

I have a C# class application that allows users to Upload and download files in SharePoint. Basically SharePoint is uses as a Filesserver

Uploading is fine, However when downloading the process is to to Search for a document via document ID retrieve the URL and then attempt to download the document. Unfortunately when doing the Search an Access denied is returned. We use a service account not the Users account credentials to authorize the download in SharePoint. The Service account has writes according to our SP admin. I can use the service account to download the document directly via the SharePoint URL. But the searching using the ExecuteQuery Causes the error

Microsoft 365 and Office | SharePoint Server | Development
{count} votes

Accepted answer
  1. R, Lamar 96 Reputation points
    2021-01-21T19:49:51.523+00:00

    Unfortunately given the client and the client restrictions I cannot share the code. But I can share the resolution. The reason for the error is that the service account, has roles that were not accessible in SharePoint.

    Lamar

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.