<?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: add permission to a node in javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/add-permission-to-a-node-in-javascript/m-p/128252#M90160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You cannot simply set permissions whenever and however you want - that would make them pointless. The user setting the permissions actually requires the WRITE_PERMISSIONS permission - it may sound strange but it makes sense. That permission is available to admin and users with Coordinator role on the node - also to users who are OWNERs of the node. You need to get the admin user to execute the script or get an admin/coordinator user to grant the required permissions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2007 14:10:49 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-09-18T14:10:49Z</dc:date>
    <item>
      <title>add permission to a node in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-permission-to-a-node-in-javascript/m-p/128251#M90159</link>
      <description>I want to create a file in a node using javascript,but I haven't permission.How to set permission or get admin's privilege temporarily in javascript?&amp;nbsp; I set as follows: company.children[4].setPermission("CreateChildren");&amp;nbsp; but it doesn't work.Who can give me some suggestion?Thank you in advance!</description>
      <pubDate>Fri, 14 Sep 2007 07:46:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-permission-to-a-node-in-javascript/m-p/128251#M90159</guid>
      <dc:creator>chys</dc:creator>
      <dc:date>2007-09-14T07:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: add permission to a node in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-permission-to-a-node-in-javascript/m-p/128252#M90160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You cannot simply set permissions whenever and however you want - that would make them pointless. The user setting the permissions actually requires the WRITE_PERMISSIONS permission - it may sound strange but it makes sense. That permission is available to admin and users with Coordinator role on the node - also to users who are OWNERs of the node. You need to get the admin user to execute the script or get an admin/coordinator user to grant the required permissions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 14:10:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-permission-to-a-node-in-javascript/m-p/128252#M90160</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-09-18T14:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: add permission to a node in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-permission-to-a-node-in-javascript/m-p/128253#M90161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First thank you for you reply!But you suggestion still can't slove my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I draw my work here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 1 submit form using webscript &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 2 read the content of form&amp;nbsp; and write it to a file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 3 the file is created in a space which auto execute a script to initialize a serial review workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; So the person submitting form should have write permission in the space,but he don't have read permission.I create a role&amp;nbsp; in the permissionDefinitions.xml,but it doesn't work.The follow is the part of my configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permissionGroup name="Writer" allowFullControl="false" expose="true" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;includePermissionGroup permissionGroup="AddChildren" type="sys:base"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/permissionGroup&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have other suggestion? Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 01:26:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-permission-to-a-node-in-javascript/m-p/128253#M90161</guid>
      <dc:creator>chys</dc:creator>
      <dc:date>2007-09-20T01:26:39Z</dc:date>
    </item>
  </channel>
</rss>

