Click here to Skip to main content
6,822,123 members and growing! (17,640 online)
Email Password   helpLost your password?
Enterprise Systems » SharePoint Server » General     Beginner License: The Code Project Open License (CPOL)

Enabling Anonymous Access in SharePoint Surveys

By S.S. Ahmed

Surveys are an excellent way of collecting information from the users. Learn how to enable anonymous access in SharePoint surveys.
Windows (Win2003, Vista, TabletPC, Embedded), WebForms, Architect, Dev, Design
Posted:26 Dec 2007
Updated:26 Dec 2007
Views:11,488
Bookmarked:12 times
Unedited contribution
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
3 votes for this article.
Popularity: 1.24 Rating: 2.60 out of 5
1 vote, 33.3%
1

2
1 vote, 33.3%
3
1 vote, 33.3%
4

5
<html> <head> 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>

License

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


Member
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
Occupation: Web Developer
Location: Pakistan Pakistan

Other popular SharePoint Server articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Layout  Per page   
 Msgs 1 to 2 of 2 (Total in Forum: 2) (Refresh)FirstPrevNext
GeneralNew group, controls are disabled Pinmemberfrun4:03 21 May '09  
GeneralNice Article. PinmemberTariq Younas10:23 23 Feb '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

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

PermaLink | Privacy | Terms of Use
Last Updated: 26 Dec 2007
Editor:
Copyright 2007 by S.S. Ahmed
Everything else Copyright © CodeProject, 1999-2010
Web22 | Advertise on the Code Project