Click here to Skip to main content
15,886,714 members
Articles / Productivity Apps and Services / Sharepoint / SharePoint 2013
Tip/Trick

Activating Anonymous Access to Add Documents in SharePoint

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
16 Nov 2014CPOL 9.9K   1  
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)


Written By
Student
Tunisia Tunisia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --