After adding users to a SQL database in SharePoint, and then performing dismount and mount operations, the users' db_owner permission is removed.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
After adding users to a SQL database in SharePoint, and then performing dismount and mount operations, the users' db_owner permission is removed.
This situation occurs when the following steps are taken:
The two users are present in the SQL database, but the db_owner permission has been removed.
SharePoint currently strips all members of ContentDB's DBO role (except for the user running the upgrade) as part of an improved security model.
To run the scenario and retain the db_owner permission, you must first modify the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\16.0\WSS\
Note
By default the value is 0 if the registry is not present.
Keywords: Detach and reattach, kbContentAuto, kbSupportTopic