<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Remove the existing permissions from the parent document in alfresco through database in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/remove-the-existing-permissions-from-the-parent-document-in/m-p/75858#M24061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I go to the document library of any project in alfresco version 3.4.14 and click on inherit permissions to remove existing permissions and save it, by this all permissions get removed from the project. But I want to do this in bulk for many projects using database. Please suggest solutions for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2018 10:24:49 GMT</pubDate>
    <dc:creator>pra0706shu</dc:creator>
    <dc:date>2018-06-14T10:24:49Z</dc:date>
    <item>
      <title>Remove the existing permissions from the parent document in alfresco through database</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/remove-the-existing-permissions-from-the-parent-document-in/m-p/75858#M24061</link>
      <description>When I go to the document library of any project in alfresco version 3.4.14 and click on inherit permissions to remove existing permissions and save it, by this all permissions get removed from the project. But I want to do this in bulk for many projects using database. Please suggest solutions for</description>
      <pubDate>Thu, 14 Jun 2018 10:24:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/remove-the-existing-permissions-from-the-parent-document-in/m-p/75858#M24061</guid>
      <dc:creator>pra0706shu</dc:creator>
      <dc:date>2018-06-14T10:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Remove the existing permissions from the parent document in alfresco through database</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/remove-the-existing-permissions-from-the-parent-document-in/m-p/75859#M24062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Making changes by updating the data in the Alfresco database directly is unsafe, unsupported, and is not even necessary in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should just install the &lt;A href="https://github.com/share-extras/js-console" rel="nofollow noopener noreferrer"&gt;Alfresco JavaScript console&lt;/A&gt;, then write a script to do it. Or, if you don't want to do that, write a web script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of whether it runs from the JavaScript console or the controller of a web script, the server-side JavaScript to set the parent to not inherit looks like:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;folder&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setInheritsPermissions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you need help figuring out how to get the folder object, like through a query, take a look at the &lt;A href="https://docs.alfresco.com/5.2/concepts/API-JS-intro.html" rel="nofollow noopener noreferrer"&gt;JavaScript API docs&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jun 2018 22:43:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/remove-the-existing-permissions-from-the-parent-document-in/m-p/75859#M24062</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-06-16T22:43:01Z</dc:date>
    </item>
  </channel>
</rss>

