Enable or Disable Security for a Repository
- Last UpdatedJun 06, 2024
- 1 minute read
To enable or disable the security
We recommend to enable Security for the repositories while working in the Production environment.
-
Connect to Farm database.
-
Query the properties column for the specified repository, as shown in following code snippet:
SELECT Properties, * FROM SKRepository
WHERE Name = 'RepositoryName'
It will display the following record for the specified repository. Select the properties column value and copy it:
<properties>
<property key="spexplorerDisplayLimit"><![CDATA[0]]></property>
<property ey="sourceelements"><![CDATA[WORKFLOWELEMENTS\Default]]></property>
<property key="fromemail"><![CDATA[admin@domain.com]]></property>
<property key="toemail"><![CDATA[admin@domain.com]]></property>
<property key="alertuser"><![CDATA[False]]></property>
<property key="filewatcher"><![CDATA[]]></property>
<property key="enablesecurity"><![CDATA[True]]></property>
<property key="enablewebparts"><![CDATA[True]]></property>
<property key="isadminconfigured"><![CDATA[True]]></property>
<property key="isThemeEnabled"><![CDATA[True]]></property>
<property key="theme"><![CDATA[Default]]></property>
<property key="isDMSEnabled"><![CDATA[False]]></property>
<property key="AutoMapActiveDirectoryProviders"><![CDATA[True]]></property>
</properties>
-
Modify the property value for enablesecurity property to ‘True/False’.
-
Update the column value for the specified repository.
UPDATE SKRepository
SET Properties = 'Modified properties'
WHERE Name = 'RepositoryName'
-
Do an IISRESET.