Anonymous Access in SharePoint 2013

Setting up anonymous access in SharePoint can be tricky if you don't plan it well ahead. As a first step we can check at which level we can set anonymous access in SharePoint.

Web Application Level

When you create a web application in SharePoint you can set the anonymous access at the web application level. This will allow the entire anonymous user to access the site.

  1. Go to SharePoint Central Administration site then select "Application Management" ->"Web Application Management".
  2. In the Create New Web Application Screen choose "Yes" for "Allow Anonymous".

    Anonymous-Access-in-SharePoint1.jpg

Extended Web Application Level

When you create an external facing site it's a best practice to have an extended web application that will face the external traffic.

  1. Go to SharePoint Central Administration site then select "Application Management" ->"Web Application Management".
  2. In the Web Application Management screen select the web application to extend and click on extend and in the Screen choose anonymous access in security.

    Anonymous-Access-in-SharePoint2.jpg

Other Settings at Web Application Level

Authentication Provider

  1. Go to SharePoint Central Administration site then select "Application Management" -> "Web Application Management"
  2. In the Web Application Management screen select the web application click on Authentication Provider.

    Anonymous-Access-in-SharePoint3.jpg

  3. In Authentication Provider select the Zone in which you need to change the authentication.

    Anonymous-Access-in-SharePoint4.jpg

  4. You can edit the authentication and set the anonymous access

    Anonymous-Access-in-SharePoint5.jpg

Anonymous Policy

  1. Go to SharePoint Central Administration site then select "Application Management" -> "Web Application Management"
  2. In Web Application Management screen select the web application click on Anonymous Policy.

    Anonymous-Access-in-SharePoint6.jpg

  3. Set the Anonymous policy for each Zone

    Anonymous-Access-in-SharePoint7.jpg

SharePoint Site Collection Level

As a first step you need to enable anonymous access at web application level and go to the site collection in which you want set up the anonymous access. One thing to ensure is that the site is accessed through a proper zone in which anonymous access is enabled at the web application level. For example I have created a web application in port 80 and extended it for internet in port 4040 and enabled the anonymous access for the internet zone. Then I should access the site with port 4040 or with the proper host header to set the anonymous access at the site collection level.

Go to Site Settings, click on "Site Permissions".

Anonymous-Access-in-SharePoint8.jpg

Click on "Anonymous Access".

Anonymous-Access-in-SharePoint9.jpg

Give anonymous permission to the entire web site unless you want to enable it for a specific list, uncheck the "Require Use Remote Interface" Permission.

Anonymous-Access-in-SharePoint10.jpg

Click "Ok" to save the changes, then close the browser and access the site again; it will not prompt you.

SharePoint Library Level

As a first step, ensure anonymous access is enabled at the web application level.

Go to any library and click on "Library settings".

Anonymous-Access-in-SharePoint11.jpg

Go to the permission.

Anonymous-Access-in-SharePoint12.jpg

Click on "Stop inheriting".

Anonymous-Access-in-SharePoint13.jpg

Click on "Anonymous Access".

Anonymous-Access-in-SharePoint14.jpg

Set the permission for the anonymous user.

Anonymous-Access-in-SharePoint15.jpg

By default an anonymous user cannot add and edit items in a document library, which is disabled, even with anonymous access enabled. So for a document library all options will be greyed except "View documents".
For a SharePoint list you can allow anonymous users to perform all operations as in the following.

Anonymous-Access-in-SharePoint16.jpg

Application Page Level

You need to deactivate the following feature to allow anonymous users to access application level pages.

Anonymous-Access-in-SharePoint17.jpg

Hope this will help setup anonymous permissions.