Skip to content

Remove View Items permission from SharePoint list with Anonymous access enabled

March 3, 2011

When allowing anonymous access to a SharePoint list there are four checkboxes that can be set: Add Items, Edit Items, Delete Items, View Items.

If you set any of the first three checkoxes, the View Items get set automatically and cannot be unchecked. There are situations however, when you want to allow anonymous users to only add items and not to view existing ones. (for example in a Contact form). This cannot be handled by list permissions.

One solution to achieve this functionality can be modifying the web.config file and adding a deny authorization node that makes some particular pages inaccessible for unauthenticated users. For example, to deny access to anonymous users to the display form of the list items insert to following lines into the web.config file, right under the opening configuration node:

<location path="Lists/name-of-your-list/DispForm.aspx">
      <deny users="?" />

You will need to do the same for the different views of the list (AllItems.aspx, etc.)

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: