Click here to Skip to main content
13,299,298 members (58,228 online)
Click here to Skip to main content
Add your own
alternative version


15 bookmarked
Posted 26 Dec 2007

Enabling Anonymous Access in SharePoint Surveys

, 26 Dec 2007
Rate this:
Please Sign up or sign in to vote.
Surveys are an excellent way of collecting information from the users. Learn how to enable anonymous access in SharePoint surveys.
<html> <head> <title>The Code Project <Style> BODY, P, TD { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt } H2,H3,H4,H5 { color: #ff9900; font-weight: bold; } H2 { font-size: 13pt; } H3 { font-size: 12pt; } H4 { font-size: 10pt; color: black; } PRE { BACKGROUND-COLOR: #FBEDBB; FONT-FAMILY: "Courier New", Courier, mono; WHITE-SPACE: pre; } CODE { COLOR: #990000; FONT-FAMILY: "Courier New", Courier, mono; } </style> <link rel="stylesheet" type=text/css href=""> </head> <body bgcolor="#FFFFFF" color=#000000>
Title:       Enabling Anonymous Access in SharePoint Surveys
Author:      S.S. Ahmed
Member ID:   22562
Language:    C#
Platform:    Windows Server 2003
Technology:  SharePoint 
Level:       Beginner
Description: Learn how to enable anonymous access in SharePoint surveys.
Section:     Internet
SubSection:  SharePoint


Surveys are an excellent way of collecting information from the users. Enabling anonymous access in SharePoint surveys allows you to collect information from all your site visitors.


I have been asked quite often about the anonymous access in surveys. This may be because I wrote a couple articles about surveys in MOSS 2007 some time ago. If you have a subscription to the Advisor magazine, you can read my detailed article about SharePoint surveys.

Enabling anonymous access in surveys is easy. All you have to do is make some changes in the SharePoint Central Administration and the site where the survey is hosted. Following are the detailed steps required to do this:

1. Go to IIS settings. Select the SharePoint site for which you want to enable anonymous access. Select "Properties". Select "Directory Security" and enable anonymous access by checking the "Enable anonymous access" option. Use "IUSR_MACHINENAME" as the user (If your machine name is "DEV", this user name will be "IUSR_DEV".)

2. Go to SharePoint Central Administration. Select "Application Management". Select "Authentication providers" under "Application Security".

3. Select correct web application from the drop down. Click "Default" zone.

4. Check "Enable anonymous access" option.

5. Create a group for anonymous users at site level and assign "Contributor" rights.

Creating a group for anonymous users:

a. Open SharePoint site that hosts the survey.

b. Go to Site Actions > Site Settings and select "People and groups" from the "Users and Permissions" section.

c. Select New > New Group. Give this group a name, for example, "anon users". Scroll down and check "Contribute" option in "Give Group Permission to this Site" section. If you don't want the users to have the "delete" right, create a new permission level and use that instead of the "Contribute" option.

6. Open your survey. Go to "Settings". Click "Permissions for this survey" (under "Permissions and Management").

7. Select "Anonymous Access" from "Settings" drop down. Select permissions that you will like to give to the anonymous users and click OK.

8. Log out and access the survey list without logging in again and test the user access. You should be able to respond to a question without logging in.

</body> </html>


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


About the Author

S.S. Ahmed
Web Developer
Pakistan Pakistan
S.S. Ahmed is a senior software engineer and works for a web and software development firm. Ahmed is a Microsoft Office SharePoint Server MVP. Ahmed specializes in creating database driven dynamic web sites. He has been creating customized SharePoint solutions for the last five years. Ahmed has worked in Visual Basic, Visual C, Java, ASP, .NET, SharePoint, InfoPath, BizTalk, etc. Ahmed enjoys travelling and has been to many parts of the world. Ahmed distributes most of his work freely to many internet sites. Ahmed also participates in different newsgroups and tries to help people out with their problems. Ahmed can be reached at


S.S. Ahmed

You may also be interested in...

Comments and Discussions

GeneralNew group, controls are disabled Pin
frun21-May-09 4:03
memberfrun21-May-09 4:03 
GeneralRe: New group, controls are disabled Pin
panoone11-Mar-10 15:08
memberpanoone11-Mar-10 15:08 
GeneralNice Article. Pin
Tariq Younas23-Feb-08 10:23
memberTariq Younas23-Feb-08 10:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171207.1 | Last Updated 27 Dec 2007
Article Copyright 2007 by S.S. Ahmed
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid