It happened all of a sudden that permission has been lost for all the users on specific site collection, however i tried to login by the farm admin and site collection admin but i don’t have administrator permissions so i can’t add users or add user. Just i see the site but i can’t do any operation this problem just happened on one site collection but other site collection working well

Symptoms

  • Not able to perform any admin operations with site collection admin account like list creation, adding users in SharePoint groups, etc.,
  • Less links under site actions menu
  • Error occurred in deployment step ‘Retract Solution’: Attempted to perform an unauthorized operation

Resolution

Run the below command to know the status of your web application content database

stsadm -o getsitelock -url [site]

Reference: hhttps://docs.microsoft.com/en-us/previous-versions/office/sharepoint-2007-products-and-technologies/cc262811(v=office.12)?redirectedfrom=MSDN

If the command returns as “Read-only” you will need to change to “None” to unlock database.

stsadm -o setsitelock -url http://server_name -lock none

Reference: https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-2007-products-and-technologies/cc262811(v=office.12)?redirectedfrom=MSDN