<?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 Use of node.setPermission in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/use-of-node-setpermission/m-p/307694#M260824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have written the code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;node.setPermission("AdminRole", user);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in java backed webscript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i logged in as admin the above code executes fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it fails for non-admin users with exception : 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;How I can make it possible for non admin user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggest !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 13:24:43 GMT</pubDate>
    <dc:creator>sanketgosavi</dc:creator>
    <dc:date>2014-10-15T13:24:43Z</dc:date>
    <item>
      <title>Use of node.setPermission</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-node-setpermission/m-p/307694#M260824</link>
      <description>I have written the codenode.setPermission("AdminRole", user);in java backed webscriptWhen i logged in as admin the above code executes fine.But it fails for non-admin users with exception : Access Denied.&amp;nbsp; You do not have the appropriate permissions to perform this operation.How I can make it possib</description>
      <pubDate>Wed, 15 Oct 2014 13:24:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-node-setpermission/m-p/307694#M260824</guid>
      <dc:creator>sanketgosavi</dc:creator>
      <dc:date>2014-10-15T13:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use of node.setPermission</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-node-setpermission/m-p/307695#M260825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To execute this code, the authenticated user needs to have ChangePermissions permission.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use an AuthenticationUtil.runAs with system user to solve your problem. You can find examples in the source code of Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 07:36:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-node-setpermission/m-p/307695#M260825</guid>
      <dc:creator>mlagneaux</dc:creator>
      <dc:date>2014-10-16T07:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Use of node.setPermission</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-node-setpermission/m-p/307696#M260826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;AuthenticationUtil.runAs will work for java only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want the solution in javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way by which i can use AuthenticationUtil.runAsSystem in javascript ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 07:01:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-node-setpermission/m-p/307696#M260826</guid>
      <dc:creator>sanketgosavi</dc:creator>
      <dc:date>2014-10-17T07:01:36Z</dc:date>
    </item>
  </channel>
</rss>

