<?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 Re: Cut Inherit permission in a fileshare folder in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90125#M61332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes! Thanks for reply! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the definition of setInheritsPermission in the JS API (wiki) and some tips here on the forum on this spesific topic&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now I have a JS script that removes permission inheritance when something is added or created to my filestore folder or in the subfolders, as long as I am logged in as admin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But for other users, they can't contribute because of an error when trying to add or create subfolders in the filestore folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The filestore folder has invited EVERYONE as a contributer so I don't see why they can add when I'm removing the rule, but when the rule is active they get an error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var permissionFolder = space.childByNamePath("xxxx");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (permissionFolder != null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.setInheritsPermissions(false); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.setOwner("contributor");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2007 12:36:01 GMT</pubDate>
    <dc:creator>rubi</dc:creator>
    <dc:date>2007-08-20T12:36:01Z</dc:date>
    <item>
      <title>Cut Inherit permission in a fileshare folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90122#M61329</link>
      <description>I have a problem with inheritance form parent folder in alfresco 2.0. I have a fileshare folder where all users can contribute (Everyone is a Contributor) to add content, but the issue is to make it possible to just see the content that the spesific user have added. The user that contributes just se</description>
      <pubDate>Wed, 15 Aug 2007 08:45:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90122#M61329</guid>
      <dc:creator>rubi</dc:creator>
      <dc:date>2007-08-15T08:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cut Inherit permission in a fileshare folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90123#M61330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still strugling to get a javascript (.js file inn a content rule) that removes inheritance on the subfolder an files. I have tested other .js files an those rule rules with scripts are functioning pretty well&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// remove inheritance in subfolders and files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var permissionService = companyhome.childByNamePath("Fildeling/test3");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (permissionService != null) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; permissionService = space.setInheritParentPermissions(nodeRef, false);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the error message I get?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A system error happened during the operation: Transaction didn't commit: Failed to execute script 'workspace://SpacesStore/e7d58c4d-4be8-11dc-9dae-cd5281c789f2': TypeError: Cannot find function setInheritParentPermissions. (AlfrescoScript#9) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sure that this it is my poor programing skills i JS and that this is a easy syntax to complete. Anyone who have any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 12:02:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90123#M61330</guid>
      <dc:creator>rubi</dc:creator>
      <dc:date>2007-08-16T12:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cut Inherit permission in a fileshare folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90124#M61331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The method in the JS API is called 'setInheritsPermissions' - the docs are correct on the wiki.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 10:23:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90124#M61331</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-08-20T10:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cut Inherit permission in a fileshare folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90125#M61332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes! Thanks for reply! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the definition of setInheritsPermission in the JS API (wiki) and some tips here on the forum on this spesific topic&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now I have a JS script that removes permission inheritance when something is added or created to my filestore folder or in the subfolders, as long as I am logged in as admin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But for other users, they can't contribute because of an error when trying to add or create subfolders in the filestore folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The filestore folder has invited EVERYONE as a contributer so I don't see why they can add when I'm removing the rule, but when the rule is active they get an error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var permissionFolder = space.childByNamePath("xxxx");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (permissionFolder != null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.setInheritsPermissions(false); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.setOwner("contributor");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 12:36:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90125#M61332</guid>
      <dc:creator>rubi</dc:creator>
      <dc:date>2007-08-20T12:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cut Inherit permission in a fileshare folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90126#M61333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK. I solved this one. Users can now log in again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for guiding me in the right direction!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 11:19:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90126#M61333</guid>
      <dc:creator>rubi</dc:creator>
      <dc:date>2007-08-29T11:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cut Inherit permission in a fileshare folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90127#M61334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Kevin/Ruby,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Can you please post the solution, because now I stuck in same situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–Hani&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 12:25:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90127#M61334</guid>
      <dc:creator>hani</dc:creator>
      <dc:date>2007-09-06T12:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cut Inherit permission in a fileshare folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90128#M61335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a part of my JS file that I use in a rule to remove inherit permission files and folder where the rule is executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;——————————————————–&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var permissionFolder = space.childByNamePath;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (permissionFolder != null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; document.removePermission("Read"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; document.removePermission("Write"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; document.removePermission("Delete"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// remove inherit permissons and set Owner&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; document.setInheritsPermissions(false); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; document.setOwner("contributor");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 08:32:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90128#M61335</guid>
      <dc:creator>rubi</dc:creator>
      <dc:date>2007-09-07T08:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cut Inherit permission in a fileshare folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90129#M61336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thaks Rubi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sorrry for the delay to respond because last 2 days I was out of office.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I did the same way only but the issue is when I add any content it is being uploaded and the rule is being applied but after that showing the access denied message. If we login as admin we can see the uploaded doc.&amp;nbsp; I also tried by giving the ChangePermissions permission to the user. No change.&amp;nbsp; What is wrong with me any idea ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; One more question instead of seting owner as contributor, how can I set the current user as owner. I tried by giving person. Is there proeprty for person to get the name or any other way to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;please ….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks once more for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–Hani&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 05:13:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cut-inherit-permission-in-a-fileshare-folder/m-p/90129#M61336</guid>
      <dc:creator>hani</dc:creator>
      <dc:date>2007-09-10T05:13:17Z</dc:date>
    </item>
  </channel>
</rss>

