<?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 How to Grant/Revoke roles using Rules in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-grant-revoke-roles-using-rules/m-p/44076#M24184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My requirements are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. We will have spaces like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Banking-&amp;gt;Drafts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Consulting-&amp;gt;Drafts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All users will upload documents under Drafts folder and it will go through advanced workflow and then will be published by admin group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. All published contents will be moved to one level above. i.e from Drafts to Banking in the above example. Published folder (Banking) will have consumer access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. When the document is uploaded to Drafts folder, others should not see it. But any body should be able upload any document in Drafts folder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So basically we need some kind of &lt;/SPAN&gt;&lt;STRONG&gt;Restricted Contributor Role&lt;/STRONG&gt;&lt;SPAN&gt; for Drafts, which will have Add children+Restricted Consumer, meaning users should see only their own documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to achieve through Permission configuration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option in my mind is to create a custom action and create a rule for Drafts folder to fire the action upon newly created/added documents. In this approach, I know how to create custom actions but I don't know how to Revoke/Grant Roles. Can any one send me piece of code which should be kept in Action Executer please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Senthil.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2007 04:58:14 GMT</pubDate>
    <dc:creator>senthil_chinnai</dc:creator>
    <dc:date>2007-03-08T04:58:14Z</dc:date>
    <item>
      <title>How to Grant/Revoke roles using Rules</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-grant-revoke-roles-using-rules/m-p/44076#M24184</link>
      <description>Hi All:My requirements are:1. We will have spaces like this:Banking-&amp;gt;DraftsConsulting-&amp;gt;Drafts…All users will upload documents under Drafts folder and it will go through advanced workflow and then will be published by admin group.2. All published contents will be moved to one level above. i.e f</description>
      <pubDate>Thu, 08 Mar 2007 04:58:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-grant-revoke-roles-using-rules/m-p/44076#M24184</guid>
      <dc:creator>senthil_chinnai</dc:creator>
      <dc:date>2007-03-08T04:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Grant/Revoke roles using Rules</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-grant-revoke-roles-using-rules/m-p/44077#M24185</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;Create a contributor style role with no read access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read will be provided by roles assigned to the owner.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 09:02:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-grant-revoke-roles-using-rules/m-p/44077#M24185</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-03-08T09:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Grant/Revoke roles using Rules</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-grant-revoke-roles-using-rules/m-p/44078#M24186</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 tried the same the Drafts space itself is not visible to users because it doesn't have Consumer role.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to grant/revoke role for a specific node using code? If possible could you guide me how to do that please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Senthil.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 10:12:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-grant-revoke-roles-using-rules/m-p/44078#M24186</guid>
      <dc:creator>senthil_chinnai</dc:creator>
      <dc:date>2007-03-08T10:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Grant/Revoke roles using Rules</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-grant-revoke-roles-using-rules/m-p/44079#M24187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have done this using a custom action and it works as expected !&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;nbsp;permissionService.deletePermissions(nodeRef);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;permissionService.setInheritParentPermissions(nodeRef, false);&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;SPAN&gt;Thanks for your help !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Senthil.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 14:40:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-grant-revoke-roles-using-rules/m-p/44079#M24187</guid>
      <dc:creator>senthil_chinnai</dc:creator>
      <dc:date>2007-03-08T14:40:53Z</dc:date>
    </item>
  </channel>
</rss>

