Monday, May 6, 2013

Sharepoint 2010 Farm Administrator Gets Access Denied

Its a common misconception that SharePoint Farm Administrator will get access to all SharePoint sites in the farm automatically! Farm administrator get access denied error in SharePoint 2010 site collection when trying to browse.

sharepoint 2010 farm administrator access denied
Solution: Its a misconception that, Farm Administrator gets access to everything automatically!
Farm Administrators gets control over SharePoint Central Administration, but not all sites. So, we have to explicitly grant access to required web applications to the Farm Administrator through web application user policies by navigating to:
  • Central Administration  >>
  • Security >>
  • Specify web application user policy >>
sharepoint farm administrator permissions
Add web application user policy in SharePoint 2010 with PowerShell 
Above step can be automated for all web applications using PowerShell.  
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#User to Add

#Add user to Web App user Policy

#Get All Web Applications and Iterate through
   Get-SPWebApplication | foreach-object {
                $WebAppPolicy = $_.Policies.Add($UserID, $UserID)
                #Set Full Access 
                $PolicyRole = $_.PolicyRoles.GetSpecialRole([Microsoft.SharePoint.Administration.SPPolicyRoleType]::FullControl)
  Write-Host "Added user to $($_.URL)"

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...