Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / productivity / SharePoint / SharePoint2013

Activating Anonymous Access to Add Documents in SharePoint

5.00/5 (1 vote)
16 Nov 2014CPOL 10.2K  
We will see in this tip how to enable anonymous access in Sharepoint for a Farm Solution

Introduction

One of the most common observations is the complexity activating the anonymous access to add items/documents to SharePoint List.

  1. Anonymous access must be granted at the web application level at the time that you create the web application and zones. You can always go back and enable or disable this by going to “Authentication Providers” page in Central Admin.

    Image 1

    Then:

    Image 2

  2. Site Administrators have to tell SharePoint to allow anonymous access by browsing to http://yoursite/_layouts/setanon.aspx and granting the right access control for anonymous users.

    Image 3

    Image 4

  3. In addition, each document library or list has separate settings for anonymous users in order to control how they can access and interact with the content.
    • Go to your created SharePoint list, go to the list permissions.

      Image 5

    • Stop inheriting the permissions (if not already done).

      Image 6

    • You should see the Anonymous Access icon.
    • Once you click on it, select the “Add items” option checkbox.

    Image 7

  4. Both document libraries and Lists don’t allow anonymous access users to add documents.
    Some of the solutions to add documents are as follows:

    */SPSecurity.RunWithElevatedPrivileges method:
    Executes the specified method with Full Control rights even if the user does not otherwise have full control.

    Image 8

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)