Archive for the ‘Service Applications’ Category
SPPersistedObject Could not be updated becuase the current user is not a farm administrator Microsoft.SharePoint.Administration.SPWebService.ContentService.RemoteAdministratorAccessDenied
Posted July 27, 2012on:
We are working a Self Service SharePoint Site Creation Web Part which allows users to create a site by filling in a Form with the information about the content database / site collection / managed path / list of administrators etc., and upon approval perform the logic to create the Web with the information given by the user.
SPPersisted Object could not be updated because the current user is not a Farm Administrator.
I know that the creation process is running under an account which is a farm administrator. After detailed look at the event logs (Detailed level Verbose enabled), found that we can resolve this with a simple Power Shell script.
[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) > $null
[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Administration”) > $null
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$contentService.RemoteAdministratorAccessDenied = $false