Sunday, 20 January 2013

Anonymous Access issue for form Pages in SharePoint.


 

 Problem: After setting Anonymous access on entire site, why form pages (like custom views etc) still needs credentials to access them?




Solution: 



Default behavior of anonymous setting, once we enable anonymous access to site level anonymous permission mask sets on entire site. Under this mask only following permission properties covers.



ViewListItems, ViewVersions, Open, ViewPages, UseClientIntegration






Here you can see there is no permission properties related to form pages (views). So I have set the properties by PowerShell commands.

 
 New property requires to solve the issue :
ViewListItems, ViewVersions, ViewFormPages, Open, ViewPages, UseClientIntegration 

Commands:

$web = Get-SPWeb https://XXXXX.com
$web.AnonymousPermMask64
ViewListItems, ViewVersions, Open, ViewPages, UseClientIntegration
$web.AnonymousState = [Microsoft.SharePoint.SPWeb+WebAnonymousState]::Enabled
$web.AnonymousPermMask64 = "ViewListItems, ViewVersions, ViewFormPages, Open, ViewPages, UseClientIntegration"
$web.update()


Regards
Gyan Shukla





6 comments: