{"id":1100,"date":"2009-05-14T11:15:39","date_gmt":"2009-05-14T19:15:39","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=1100"},"modified":"2012-11-07T21:33:18","modified_gmt":"2012-11-08T05:33:18","slug":"how-to-configure-survey-lists-for-anonymous-access","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/how-to-configure-survey-lists-for-anonymous-access\/","title":{"rendered":"How to Configure Survey Lists for Anonymous Access"},"content":{"rendered":"<p>Creating a Survey List is easy but unfortunately configuring it for anonymous access and making sure anonymous users cannot view the results is not that simple. For intranet scenarios you typically won&#8217;t be configuring anonymous access but if you have an Internet-facing Web site that you may have a need to configure anonymous access. For example,\u00a0for those of\u00a0you who run User Group Web sites hosted on SharePoint servers, this technique will surely come handy.\u00a0In this article I will show you how to properly configure a Survey List for anonymous access and to prevent anonymous readers from viewing the results of the survey.<\/p>\n<p>I use a User Group template for my Windows Networking User Group site. To join the User Group people click on a link on the home page and start the survey which asks them a few simple questions and then at the end it takes them to a &#8220;Thank You&#8221; page. Here&#8217;s the technique I use to configure my survey.<\/p>\n<p>1. Create a survey (e.g. MonthlyMeeting). Do not check the option to display the survey on the\u00a0Quick Launch. We will use a different and better method to display the survey on the Quick Launch.<\/p>\n<p>2. Save the survey as a template if you want to use the survey again. In my case, people take the survey, I look at the results and save the survey (export to a spreadsheet). Then I delete all the entries in the survey, change the name of the survey if necessary, and the counter starts counting from 1 again.<\/p>\n<p>3. On the Survey Settings page click <em>Permissions for this survey<\/em> link.<\/p>\n<p>4. By default the permissions are inherited from the site. We want\u00a0to use unique permissions. Click Actions, <em>Edit Permissions<\/em>, and then to set unique permissions click OK.<\/p>\n<p>5. You&#8217;ll see a Settings Menu appear. Click Settings, Anonymous Access.<\/p>\n<p>6. Check the boxes <em>Add items<\/em> and <em>View items<\/em>. Are the options all grayed out? Keep reading!<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1101\" title=\"anonymous_options\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/anonymous_options.jpg\" alt=\"anonymous_options\" width=\"410\" height=\"301\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/anonymous_options.jpg 410w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/anonymous_options-300x220.jpg 300w\" sizes=\"(max-width: 410px) 100vw, 410px\" \/><\/p>\n<p>NOTE: This is where it gets a little tricky. You may notice that all the boxes are grayed out and you don&#8217;t have the ability to check or uncheck the boxes, as shown in the above graphic. This is so not cool. What you&#8217;ll discover that SharePoint has a\u00a0(cough&#8230;.cough) &#8220;feature&#8221; which prevents you from making changes to the settings on this screen. However, if you do things in a different order you can work around this &#8220;feature.&#8221; Makes no sense? Right. Just keep reading.<\/p>\n<p>7. Go to the survey&#8217;s Settings page and click on <em>Advanced settings<\/em> link.<\/p>\n<p>8. Set the permissions to <em>All responses<\/em> under Read Access, as shown below. Don&#8217;t panic! This is temporary. We just need to workaround SharePoint&#8217;s &#8220;feature.&#8221; We will reverse this action in a minute.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1102\" title=\"all_responses\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/all_responses.jpg\" alt=\"all_responses\" width=\"411\" height=\"375\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/all_responses.jpg 411w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/all_responses-300x274.jpg 300w\" sizes=\"(max-width: 411px) 100vw, 411px\" \/><\/p>\n<p>9. Now you should be able to check the\u00a0boxes in step 6 that were grayed out.\u00a0Go to the survey&#8217;s\u00a0Settings page, click <em>Permissions for this survey<\/em>. Click Settings, Anonymous Access and check the boxes <em>Add items<\/em> and <em>View items<\/em>, as shown below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1103\" title=\"add_view_items\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/add_view_items.jpg\" alt=\"add_view_items\" width=\"409\" height=\"306\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/add_view_items.jpg 409w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/add_view_items-300x224.jpg 300w\" sizes=\"(max-width: 409px) 100vw, 409px\" \/><\/p>\n<p>10. Now go back to Settings for the survey\u00a0(use breadcrumbs) and\u00a0click <em>Advanced settings<\/em>. Configure the permissions as below.<\/p>\n<p>Read access: <strong>Only their own<\/strong><\/p>\n<p>Edit item: <strong>Only their own<\/strong><\/p>\n<p>Allow items from this survey to appear in search results?: <strong>No<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1104\" title=\"survey_perms\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/survey_perms.jpg\" alt=\"survey_perms\" width=\"409\" height=\"374\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/survey_perms.jpg 409w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/survey_perms-300x274.jpg 300w\" sizes=\"(max-width: 409px) 100vw, 409px\" \/><\/p>\n<p>11. Now we&#8217;ve got your permissions exactly the way we wanted. If you were to go back and look at the Anonymous Access permissions in\u00a0step they are back to what you saw in step 6&#8230;..grayed out with the options you selected in step 9 no longer selected. What? It makes no sense?\u00a0Good! That&#8217;s why you are reading this blog and not looking for a solution on TechNet. Undocumented features are usually not posted on Microsoft&#8217;s Web sites. Seriously folks&#8230;&#8230;it makes no sense but it works. Your survey will work properly at this blog and anonymous users will be able to take the survey but will not see the survey results.<\/p>\n<p><strong><span style=\"color: #008000;\">Bonus Tip<\/span><\/strong><\/p>\n<p>To make things a bit nicer, it&#8217;s a good idea to point users to a &#8220;Thank You&#8221; page rather than sending them to the results page, which is the default. Here&#8217;s how.<\/p>\n<p>1. Create a basic Web page and call it something like ThankYou.aspx.<\/p>\n<p>2. Add some text like &#8220;Thank you for responding to the survey. Your input is appreciated.&#8221;<\/p>\n<p>3. Go to Site Actions, Site Settings, Modify Navigation.<\/p>\n<p>4. Under the Survey folder create a link. If you don&#8217;t have a Survey folder you can create a heading without a URL.<\/p>\n<p>5. Add the link to the survey in the URL box. Let&#8217;s assume the\u00a0URL to\u00a0your\u00a0survey is <span style=\"text-decoration: underline;\">http:\/\/www.sitpug.com\/Lists\/RSVP\/overview.aspx<\/span>.\u00a0You want to point users to a Thank You page that resides in the <em>SitePages <\/em>library. You need to add the following code at the end of your URL: <span style=\"text-decoration: underline;\">?Source=http:\/\/www.sitpug.com\/SitePages\/ThankYou.aspx?PageView=Shared&amp;ContentEditorPopUp=True<\/span>. So the entire URL in the link will look like this: <span style=\"text-decoration: underline;\">http:\/\/www.sitpug.com\/Lists\/RSVP\/overview.aspx?Source=http:\/\/www.sitpug.com\/SitePages\/ThankYouRSVP.aspx?PageView=Shared&amp;ContentEditorPopUp=True<\/span>, without any spaces.<\/p>\n<p>6. If you prefer that people go directly to the survey itself rather than the Overview page that has all the details about the number of responses and graphical summary, enter the following code when you create the link: <span style=\"text-decoration: underline;\">http:\/\/www.sitpug.com\/Lists\/RSVP\/NewForm.aspx?Source=http:\/\/www.sitpug.com\/SitePages\/ThankYouRSVP.aspx?PageView%3DShared<\/span>. Notice this URL is pointing to the NewForm.aspx page rather than the overview.aspx page.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/05\/RSVP_link.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-3723\" title=\"RSVP_link\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/05\/RSVP_link-300x91.png\" alt=\"\" width=\"300\" height=\"91\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/05\/RSVP_link-300x91.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/05\/RSVP_link.png 414w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Test the survey as an anonymous user to make sure it works the way you want.<\/p>\n<p><em>Last Update: November 7, 2012<\/em><\/p>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a92009 Zubair Alexander. All rights reserved.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating a Survey List is easy but unfortunately configuring it for anonymous access and making sure anonymous users cannot view the results is not that simple. For intranet scenarios you typically won&#8217;t be configuring anonymous access but if you have an Internet-facing Web site that you may have a need to configure anonymous access. For [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43,24,54,11],"tags":[],"class_list":["post-1100","post","type-post","status-publish","format-standard","hentry","category-articles","category-security","category-sharepoint","category-tips-tricks"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/1100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=1100"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/1100\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=1100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=1100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=1100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}