<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="http://www.codeproject.com/styles/global.css">
</head>
<body bgcolor="#FFFFFF" color=#000000>
Title: Enabling Anonymous Access in SharePoint Surveys
Author: S.S. Ahmed
Email: share.point@yahoo.com
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
Introduction
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.
Details
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>
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 share.point@yahoo.com
PEACE
S.S. Ahmed
Web: www.walisystems.com
Blog:www.sharepointblogs.com/ssa