<?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 Permissions, Role incorrectly assigned for user on space? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/permissions-role-incorrectly-assigned-for-user-on-space/m-p/205329#M158459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been scouring the web/wiki/forums etc and I'm trying to obtain some clear answers on how permissions work in Alfresco.&amp;nbsp; Hopefully with you assistance you can give me a clear direction on why I am experiencing the issues I'm facing.&amp;nbsp; I have provided a the custom fragment for the permissionDefinitions.xml file if anyone can assist it would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– A collaborator can do anything that a contributor can do –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permissionGroup name="LMRM_RecOfficer" allowFullControl="false" expose="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;includePermissionGroup permissionGroup="Contributor" type="cm:cmobject"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/permissionGroup&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– records permission –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– Should be tied to the aspect –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– onwership should be removed when using this permission –&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permissionGroup name="LMRM_RecAdministrator"&amp;nbsp; allowFullControl="false" expose="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;includePermissionGroup permissionGroup="LMRM_RecOfficer" type="cm:cmobject"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/permissionGroup&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;/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;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN style="text-decoration: underline;"&gt;Problem:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two permission groups defined for assignment (by role) in the samples permissions file.&amp;nbsp; These are LMRM_RecOfficer and LMRM_RecAdministrator respectively.&amp;nbsp; Note that these permissions extend from the Contributor permission group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a folder "Test Space" in company home&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Set the "Test Space" space not to inherit permissions and invite a test user rmadmin to have LMRM_RecAdministrator permissions and another user rmofficer to have LMRM_RecOfficer permissions on the space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Set the "Test Space" to inherit permissions to the children&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Using the rmofficer user create a space "Test Term" under "Test Space", the permissions should inherit to the child.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I'm observing and believe to be correct (if this isn't what you would expect please comment):-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. rmofficer should have full access (including delete) on "Test Term" as they are the owner?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. rmofficer should not have delete access on "Test Space" as they only have the LMRM_RecOfficer role.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue I have is this.&amp;nbsp; When I use the permissionService.hasPermission(&amp;lt;Test_Term NODEREF&amp;gt;, "LMRM_RecAdministrator")&amp;nbsp; this returned "AccessStatus.ALLOWED".&amp;nbsp; I would expect this to be "AccessStatus.DENIED" but this is not the case.&amp;nbsp; I have not explicitly assigned any other permissions to either of the test spaces in question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ultimate goal I am trying to achieve is to allow a user to create a space, but if they do not have a particular role they SHOULDN'T have delete access to the node.&amp;nbsp; Hence I'm trying to revoke delete permissions.&amp;nbsp; The problem is that I can't ascertain whether I should revoke the permission at this stage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Nov 2008 06:02:51 GMT</pubDate>
    <dc:creator>jamen</dc:creator>
    <dc:date>2008-11-14T06:02:51Z</dc:date>
    <item>
      <title>Permissions, Role incorrectly assigned for user on space?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissions-role-incorrectly-assigned-for-user-on-space/m-p/205329#M158459</link>
      <description>Hi Guys,I've been scouring the web/wiki/forums etc and I'm trying to obtain some clear answers on how permissions work in Alfresco.&amp;nbsp; Hopefully with you assistance you can give me a clear direction on why I am experiencing the issues I'm facing.&amp;nbsp; I have provided a the custom fragment for the permissi</description>
      <pubDate>Fri, 14 Nov 2008 06:02:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissions-role-incorrectly-assigned-for-user-on-space/m-p/205329#M158459</guid>
      <dc:creator>jamen</dc:creator>
      <dc:date>2008-11-14T06:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions, Role incorrectly assigned for user on space?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissions-role-incorrectly-assigned-for-user-on-space/m-p/205330#M158460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I am not mistaken, users have full rights on the content they create. Therefore people have delete rights on the space they created, unless the ownership is yanked away, possibly by a space content rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a suggestion… I am by no means an expert, but hopefully this can help you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 15:59:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissions-role-incorrectly-assigned-for-user-on-space/m-p/205330#M158460</guid>
      <dc:creator>lpiguet</dc:creator>
      <dc:date>2008-11-18T15:59:46Z</dc:date>
    </item>
  </channel>
</rss>

