<?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: Use of Deny Permissions using API's for PermissionService in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261650#M214780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for drawing my attention to that.&amp;nbsp; I should have picked up that PermissionServiceTest earlier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One follow up question then on this, how do you clear a permission reference that's on DENY then?&amp;nbsp; Is it correct in observing that the permission service's permission deletion call treats the the assignment of a PermissionReference the same way for ALLOW and DENY?&amp;nbsp; For example you assign a permission and you have the option of setting allow to be true or false, hence you would remove the permission reference on the node if you didn't need it with no reference to whether the permission is allow or delete?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 16:29:06 GMT</pubDate>
    <dc:creator>jamen</dc:creator>
    <dc:date>2012-02-13T16:29:06Z</dc:date>
    <item>
      <title>Use of Deny Permissions using API's for PermissionService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261646#M214776</link>
      <description>Hi,I'm trying to get some concrete examples of how to leverage DENY permissions on a particular node.&amp;nbsp; I have a use case where I want to grant a permission role on a folder (e.g. Collaborator), but then on some of the documents below it I won't want to allow for Edit rights.&amp;nbsp; I know that this is pos</description>
      <pubDate>Fri, 10 Feb 2012 10:22:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261646#M214776</guid>
      <dc:creator>jamen</dc:creator>
      <dc:date>2012-02-10T10:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Deny Permissions using API's for PermissionService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261647#M214777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure DENY permissions are used anywhere, although as you have seen there's consideration for them in the permissions service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:48:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261647#M214777</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-02-10T10:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Deny Permissions using API's for PermissionService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261648#M214778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But do the existing service methods support application of DENY permissions?&amp;nbsp; That's what I'm unsure of.&amp;nbsp; I know Andy hind as mentioned DENY permissions on other forum posts.&amp;nbsp; But I've seen no programmatic evidence of this in terms of examples.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 22:25:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261648#M214778</guid>
      <dc:creator>jamen</dc:creator>
      <dc:date>2012-02-10T22:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Deny Permissions using API's for PermissionService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261649#M214779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are some examples in the test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is not used much as it is mot exposed in the UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just use the permissions service API as you would to set - but set allow to false (ie deny)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 15:26:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261649#M214779</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-02-13T15:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Deny Permissions using API's for PermissionService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261650#M214780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for drawing my attention to that.&amp;nbsp; I should have picked up that PermissionServiceTest earlier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One follow up question then on this, how do you clear a permission reference that's on DENY then?&amp;nbsp; Is it correct in observing that the permission service's permission deletion call treats the the assignment of a PermissionReference the same way for ALLOW and DENY?&amp;nbsp; For example you assign a permission and you have the option of setting allow to be true or false, hence you would remove the permission reference on the node if you didn't need it with no reference to whether the permission is allow or delete?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 16:29:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261650#M214780</guid>
      <dc:creator>jamen</dc:creator>
      <dc:date>2012-02-13T16:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Deny Permissions using API's for PermissionService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261651#M214781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public void deletePermission(NodeRef nodeRef, String authority, String permission);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;should remove matching permission that deny or allow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 11:13:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261651#M214781</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-02-20T11:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Deny Permissions using API's for PermissionService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261652#M214782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote a Java action that can apply a "DENIED" permission to a node. I ran the action on a folder in order to deny "Read" access to a user named "fisher". After running this I log the output of document.getPermissions() from some javascript, this returns the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ALLOWED;GROUP_Super;Coordinator,ALLOWED;GROUP_SysAdmin;Coordinator,DENIED;fisher;Read,ALLOWED;GROUP_Team;Coordinator,ALLOWED;GROUP_SysExec;Consumer&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that fisher is in GROUP_Team. So she has Coordinator rights (this is an inherited permission for what it's worth) on the folder from that group but has specifically been denied Read access directly on the folder via her user id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I login as fisher and check document.hasPermission("Read") from some javascript, it returns true! I would expect false to be returned?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I validated that ${security.anyDenyDenies} is set to true (I did this in code by injecting that into a java bean and logging the value, so I know the default set in repository.properties is not being overridden.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FWIW, I have had a good look through the test cases, there is a lot there and some of it doesn't really make sense to me. I'm assuming those tests are passing in Enterprise 4.1.3… If they are, then I think that the above call to hasPermission("Read") should return false?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Taking a step back, what I want to do is the following… I have a folder structure like the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Company Home&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; eFiles&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eFile 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eFile 2&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;BR /&gt;&lt;SPAN&gt;In general Team members should have access to everything under the eFiles folder. This is a large group that changes somewhat regularly. For legal reasons certain users are not allowed to interact with certain eFiles so we want to explicitly DENY access to eFile 2 for user fisher, who has a compliance conflict with being allowed to see the stuff in that folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We grant Coordinator rights to the Team group on the eFiles folder and by default all subfolders inherit this. However on eFile 2 we want to revoke access for this one user. I have tried denying "Read" or "All" for this user explicitly on the eFile 2 folder. In both cases the user is able to see the folder and when I login as her and check if she has "Read" permission on the folder she does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice would be greatly appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 21:59:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-deny-permissions-using-api-s-for-permissionservice/m-p/261652#M214782</guid>
      <dc:creator>binduwavell</dc:creator>
      <dc:date>2013-06-17T21:59:00Z</dc:date>
    </item>
  </channel>
</rss>

