<?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 Permission Problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/permission-problem/m-p/225548#M178678</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;I got a question concerning the permission system. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got an user who has the read permission (Consumer) on an content node A. With this permission he can link the node A to one of his folders (non primary child association).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is done by using the web-service-client and the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;CMLAddChild addChild = new CMLAddChild(parentReference, null, null, null, predicateChild, null);&lt;BR /&gt;CML cml = new CML();&lt;BR /&gt;cml.setAddChild(new CMLAddChild[] { addChild });&lt;BR /&gt;WebServiceFactory.getRepositoryService().update(cml);&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;The problem is, that the user can not remove node A from his folder.(remove the non primary child association) with the follwing code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;CMLRemoveChild cmlRemoveChild = new CMLRemoveChild(referenceFrom, null, predicateWhere, null);&lt;BR /&gt;CML cml = new CML();&lt;BR /&gt;cml.setRemoveChild(new CMLRemoveChild[] { cmlRemoveChild });&lt;BR /&gt;WebServiceFactory.getRepositoryService().update(cml);&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;This code leads to an Exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.repo.security.permissions.AccessDeniedException: 06090003 Access Denied.&amp;nbsp; You do not have the appropriate permissions to perform this operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The user has all Permissions(included the removeChildren permission) on the folder where he linked node A. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the deletePermission on Node A is assigned to the User, than removing the non primary child association is possible. But with this permission he is also allowed to remove Node A itself and not only the Child association.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My questions are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Why do I need more permissions to revert an addChild operation than to add it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- why is it possible to create an childAssociation to a node by only having the read permission(something like update happens the update date changes)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- how can I change the permission system, so that adding and removing child associations require the same permission? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Why do I need the delete permission on a node to remove the child association to it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2009 08:38:53 GMT</pubDate>
    <dc:creator>bk13</dc:creator>
    <dc:date>2009-07-10T08:38:53Z</dc:date>
    <item>
      <title>Permission Problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-problem/m-p/225548#M178678</link>
      <description>hello,I got a question concerning the permission system. I got an user who has the read permission (Consumer) on an content node A. With this permission he can link the node A to one of his folders (non primary child association).This is done by using the web-service-client and the following code:CM</description>
      <pubDate>Fri, 10 Jul 2009 08:38:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-problem/m-p/225548#M178678</guid>
      <dc:creator>bk13</dc:creator>
      <dc:date>2009-07-10T08:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-problem/m-p/225549#M178679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've seen similar issues in the past, and my solution was basically to add another user (whose login would not be given out) that had the delete permission, in conjunction with content rules and Simple Workflow (not jBPM based).&amp;nbsp; Regarding how to change the permission system, see these:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;A href="http://wiki.alfresco.com/wiki/Security_and_Authentication#How_to_add_your_own_type_or_aspect.2C_assign_permissions_for_it.2C_configure_it_and_secure_a_service_that_uses_it_" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Security_and_Authentication#How_to_add_your_own_type_or_aspect.2C_assign_permissions_for_it.2C_configure_it_and_secure_a_service_that_uses_it_&lt;/A&gt;….&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/PermissionModelDefintionExample" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/PermissionModelDefintionExample&lt;/A&gt;&lt;/UL&gt;&lt;SPAN&gt;Hopefully this helps a bit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 16:03:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-problem/m-p/225549#M178679</guid>
      <dc:creator>brian_robinson</dc:creator>
      <dc:date>2009-07-10T16:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-problem/m-p/225550#M178680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you very much for your reply. I also thought about an proxy user solution. Maybe thats the way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 10:12:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-problem/m-p/225550#M178680</guid>
      <dc:creator>bk13</dc:creator>
      <dc:date>2009-07-13T10:12:37Z</dc:date>
    </item>
  </channel>
</rss>

