Symptoms
Task to remove Sharepoint user failed with the following error:
Destination host '<HOSNTAME>' (#589), IP '10.2.69.12' : Provisioning request failed. Access is denied. [<response><errorContext description="Attempted to perform an unauthorized operation." code="0x80070005" executeSeqNo="3"><errorSource namespace="Error Provider" procedure="SetError"/><errorSource namespace="Error Provider Ex" procedure="RethrowError"/></errorContext></response>]
Cause
This task is failing due to the Sharepoint site being locked.
Resolution
Check the Sharepoint site locks:
cd "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>"
stsadm.exe -o getsitelock -url <SHAREPOINT_SITE_URL>
<SiteLock Lock="readonly" />
Remove the site lock through Sharepoint administration panel:
- Run Central Administration at the Windows Start menu on the Sharepoint host
- Go to Application Management > Site Collections > Configure quotas and locks, click the site
- Set to Not locked and save changes
- Restart the task.