<?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: PermissionService.setPermission to deny access to file owner in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299678#M252808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you have to keep in mind the dynamic role of OWNER. Any user that is either the owner (cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wner) or - when no cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wner is set - the creator (cm:creator) automatically has the OWNER role on that node, and this role always has full access privileges and can't be denied via the permission service (note: the admin can &amp;lt;b&amp;gt;never&amp;lt;/b&amp;gt; be denied anything).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only if you either a) disable the OWNER role via the permission services Spring bean configuration or b) set the cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wner to an empty String can you disable this behavior and achieve truly ACL-only-based permissions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2014 07:03:13 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2014-02-10T07:03:13Z</dc:date>
    <item>
      <title>PermissionService.setPermission to deny access to file owner</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299677#M252807</link>
      <description>Hi,I'm experiencing an issue with the PermissionService.Say I have a file called "test.txt", being "bob" the username of its owner. Such file is inside the documentLibrary (three/four levels of depth).Since "bob" is the owner, he has full permissions on the file. At some point I have to deny write a</description>
      <pubDate>Mon, 10 Feb 2014 01:33:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299677#M252807</guid>
      <dc:creator>francesco_lilli</dc:creator>
      <dc:date>2014-02-10T01:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionService.setPermission to deny access to file owner</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299678#M252808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you have to keep in mind the dynamic role of OWNER. Any user that is either the owner (cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wner) or - when no cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wner is set - the creator (cm:creator) automatically has the OWNER role on that node, and this role always has full access privileges and can't be denied via the permission service (note: the admin can &amp;lt;b&amp;gt;never&amp;lt;/b&amp;gt; be denied anything).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only if you either a) disable the OWNER role via the permission services Spring bean configuration or b) set the cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wner to an empty String can you disable this behavior and achieve truly ACL-only-based permissions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 07:03:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299678#M252808</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-02-10T07:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionService.setPermission to deny access to file owner</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299679#M252809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Axel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your reply. I have tried to set the cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wner to an empty string, it works fine. However I'd rather not go for this way, since I need to disable writings several times on the same file (i.e., when a certain workflow starts, this file cannot be modified by anyone; when a user refuses a task in that workflow the file needs to be editable again, and when edited it must become non-editable &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;). I should set and unset the owner of the file several times, not just once: setting/unsetting the owner doesn't seem to be a clean solution in this case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;About the other way you suggested (disable the OWNER role via the permission services Spring bean configuration), this is also not the perfect way to go: only in this particular case (i.e. the workflow) permissions need to behave this way, but as I said this is a particular case. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How would you proceed, given such requirements?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 08:36:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299679#M252809</guid>
      <dc:creator>francesco_lilli</dc:creator>
      <dc:date>2014-02-10T08:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionService.setPermission to deny access to file owner</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299680#M252810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wait, which file do you mean with "the permission services Spring bean configuration"? At first I thought you meant "permissionDefinitions.xml" but is it maybe "public-services-security-context.xml"? What would you change in there?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 08:49:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299680#M252810</guid>
      <dc:creator>francesco_lilli</dc:creator>
      <dc:date>2014-02-10T08:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionService.setPermission to deny access to file owner</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299681#M252811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Permissions and their groupings are defined in permissionDefinitions.xml. permissionDefinitions.xml is referenced by public-services-security-context.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you can modify permissionDefinitions.xml.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 13:51:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299681#M252811</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-02-10T13:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionService.setPermission to deny access to file owner</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299682#M252812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been trying to edit permissionDefinitions.xml like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;lt;!– &amp;lt;globalPermission permission="FullControl" authority="ROLE_OWNER"/&amp;gt; –&amp;gt;&lt;BR /&gt;&amp;lt;globalPermission permission="Read" authority="ROLE_OWNER"/&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and (odd enough) nothing changed.. But probably there's something else I should know about. I'd probably need to go deeper into the matter, but I'm sure you experienced guys know what I'm missing…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 14:36:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissionservice-setpermission-to-deny-access-to-file-owner/m-p/299682#M252812</guid>
      <dc:creator>francesco_lilli</dc:creator>
      <dc:date>2014-02-10T14:36:26Z</dc:date>
    </item>
  </channel>
</rss>

