<?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: How to Define Permissions on Custom Content types? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-define-permissions-on-custom-content-types/m-p/40030#M16796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Maybe this question have more elegant answer, but I'd try to solve this by custom folder rule.&amp;nbsp;The easy way to make this would be:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;write your .js script, which will be:&lt;OL&gt;&lt;LI&gt;check type of created node (JS API has function &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;.getTypeShort()&lt;/SPAN&gt; for this);&lt;/LI&gt;&lt;LI&gt;if type = your custom type:&lt;OL&gt;&lt;LI&gt;disable inheritance &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;.setInheritsPermissions(false);&lt;/SPAN&gt;&amp;nbsp;to avoid&amp;nbsp;conflits besides your custom permissions and default Alfresco permissions. Maybe you have to disable permissions for some default &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;.removePermission()&lt;/SPAN&gt;;&lt;/LI&gt;&lt;LI&gt;set custom permissions by function&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;.setPermission();&lt;/SPAN&gt; to your custom groups;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;d&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;rop it in /companyhome/Data Dictionary/Scripts&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;go to space (folder) there will be document of this type created;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;click "manage rules";&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Perform Action: execute script -&amp;gt; pick your script from the list&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Apr 2017 11:57:38 GMT</pubDate>
    <dc:creator>vhelmut</dc:creator>
    <dc:date>2017-04-22T11:57:38Z</dc:date>
    <item>
      <title>How to Define Permissions on Custom Content types?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-define-permissions-on-custom-content-types/m-p/40029#M16795</link>
      <description>Hi,I am using Alfresco 5.2.0 and have a custom content model deployed in it.I want to define permissions to access Custom Content type for specific&amp;nbsp;groups. (groups created by admin with Group Manager in Admin Tools).By this a group can have read, Create or View permission on specific Custom Content</description>
      <pubDate>Tue, 11 Apr 2017 13:03:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-define-permissions-on-custom-content-types/m-p/40029#M16795</guid>
      <dc:creator>parth</dc:creator>
      <dc:date>2017-04-11T13:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Define Permissions on Custom Content types?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-define-permissions-on-custom-content-types/m-p/40030#M16796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Maybe this question have more elegant answer, but I'd try to solve this by custom folder rule.&amp;nbsp;The easy way to make this would be:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;write your .js script, which will be:&lt;OL&gt;&lt;LI&gt;check type of created node (JS API has function &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;.getTypeShort()&lt;/SPAN&gt; for this);&lt;/LI&gt;&lt;LI&gt;if type = your custom type:&lt;OL&gt;&lt;LI&gt;disable inheritance &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;.setInheritsPermissions(false);&lt;/SPAN&gt;&amp;nbsp;to avoid&amp;nbsp;conflits besides your custom permissions and default Alfresco permissions. Maybe you have to disable permissions for some default &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;.removePermission()&lt;/SPAN&gt;;&lt;/LI&gt;&lt;LI&gt;set custom permissions by function&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;.setPermission();&lt;/SPAN&gt; to your custom groups;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;d&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;rop it in /companyhome/Data Dictionary/Scripts&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;go to space (folder) there will be document of this type created;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;click "manage rules";&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Perform Action: execute script -&amp;gt; pick your script from the list&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2017 11:57:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-define-permissions-on-custom-content-types/m-p/40030#M16796</guid>
      <dc:creator>vhelmut</dc:creator>
      <dc:date>2017-04-22T11:57:38Z</dc:date>
    </item>
  </channel>
</rss>

