<?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: Permission to execute script in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148938#M103963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Again that would be a security risk, since it would allow users who have a R/W role in one space (eg. their user home) to upload a script that effectively has R/W access to any other space in the system.&amp;nbsp; In other words, roles always have to be applied in the context of a space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, I understand the problem and can't help wondering if explicit identification of "developer scripts" and "end user scripts" might help.&amp;nbsp; "Developer scripts" would only be able to be created by developers and would have the ability to "runas" etc., while "end user scripts" could be created by anyone but would remain locked down within the current scripting security sandbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly enough, in 2.1.3 this distinction has already started appearing - Javascript scripts loaded from the classpath are trusted (ie. are "developer scripts") and have full access (via Rhino's native Java integration) to Java APIs (including the Foundation Services API), while Javascript scripts loaded from the repository are not trusted (ie. are "end user scripts") and run within the scripting security sandbox.&amp;nbsp; The only missing piece here would be to expose a "runas" Javascript API that's only available to "developer scripts" (Alfresco's existing Java "runas" API is not readily usable from Javascript due to the use of callbacks).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would be a good enhancement request (&lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/&lt;/A&gt;&lt;SPAN&gt;)!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2008 16:34:58 GMT</pubDate>
    <dc:creator>pmonks</dc:creator>
    <dc:date>2008-05-27T16:34:58Z</dc:date>
    <item>
      <title>Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148931#M103956</link>
      <description>I have following situation&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson has permission to read and write in Space A. He can NOT see Space B.There's a rule which executes script and moves inbound content from Space A to Space B.It goes like this: person uploads content to A, script moves it to B.How can this be done?&amp;nbsp; For what I see now,</description>
      <pubDate>Tue, 27 May 2008 11:04:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148931#M103956</guid>
      <dc:creator>msvoren</dc:creator>
      <dc:date>2008-05-27T11:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148932#M103957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For this kind of use case you'll have to drop to Java.&amp;nbsp; Within the Foundation Services API (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Java_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Java_API&lt;/A&gt;&lt;SPAN&gt;) there's a class / method called "AuthenticationUtil.runAs" (&lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/security/authentication/AuthenticationUtil.html#runAs(org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork,%20java.lang.String)" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/security/authentication/AuthenticationUtil.html#runAs(org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork,%20java.lang.String)&lt;/A&gt;&lt;SPAN&gt;) that'll do what you're after.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We don't expose this kind of functionality to Javascript because it creates serious security holes (ie. a user could upload a script that runs as admin and then deletes all content in the repo).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 14:24:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148932#M103957</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-05-27T14:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148933#M103958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An easy solution would be for Alfresco to implement/extend the &amp;lt;runas&amp;gt; functionality for actions associated to simple workflows (as now has been implemented for actions in advanced workflows). This would allow to safely implement this rather common scenario.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 14:56:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148933#M103958</guid>
      <dc:creator>mabayona</dc:creator>
      <dc:date>2008-05-27T14:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148934#M103959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Recall that end users can upload Javascript actions which is one of the way rules (whether related to simple workflow or not) can be implemented.&amp;nbsp; Anything that end users can do script wise &lt;/SPAN&gt;&lt;EM&gt;must&lt;/EM&gt;&lt;SPAN&gt; be locked down from a security perspective (ie. the script must not be allowed to "run as" another user, amongst other things).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scripts inside Advanced Workflows are different in that they can only be uploaded by developers or (via the Workflow Console) administrators - either of those types of users already have sufficient privileges that there's little we can do if they decided to do something malicious to Alfresco or the server it's running on.&amp;nbsp; End users, on the other hand, do not typically have that level of access to the system and it would be a serious bug if we allowed (whether inadvertently or not) that level of access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 15:24:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148934#M103959</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-05-27T15:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148935#M103960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To mantain the security level, the &amp;lt;runas&amp;gt; can be restricted to the roles available to the person that created the rule/simple workflow. This way, it is possible to implement this common scenario and the implementor can only select the roles available to him/her. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This way, only an "admin" can create a &amp;lt;runas&amp;gt;admin&amp;lt;/runas&amp;gt; while, say "approver" can only use his rights to define rule associated to an action and make it available to users with less privileges (e.g. to create a "inbox" space where users can put documents and to create a rule in this inbox space to allow the documents to be moved to another space where the document providers have either no access or read-only access. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way to implement it would be by extending the UI and including an extra drop-menu with the available roles to the rule creator.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 15:46:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148935#M103960</guid>
      <dc:creator>mabayona</dc:creator>
      <dc:date>2008-05-27T15:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148936#M103961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Roles are specific to spaces however, so how would this help with your original scenario (user A has R/W role in space A but has no R/W roles in space B, and they need to run a script that moves a document from space A to space B)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 15:56:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148936#M103961</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-05-27T15:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148937#M103962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It would help in the sense that it would allow the space owner to implement this scenario in its space. It would allow, for instance, to create e.g. a subspace "inbox" for role "providers" and R/W in "inbox", and to create a rule with &amp;lt;runas&amp;gt;approver&amp;lt;/runas&amp;gt; permission in "inbox" to move the document to another sub-space e.g. "pending approval" where "providers" do not need to have write permission. This is the scenario which is very common, but that now is not possible to implement with simple workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, alternatives are to resort either to java or to advanced workflow (where &amp;lt;runas&amp;gt; is available).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 16:16:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148937#M103962</guid>
      <dc:creator>mabayona</dc:creator>
      <dc:date>2008-05-27T16:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148938#M103963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Again that would be a security risk, since it would allow users who have a R/W role in one space (eg. their user home) to upload a script that effectively has R/W access to any other space in the system.&amp;nbsp; In other words, roles always have to be applied in the context of a space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, I understand the problem and can't help wondering if explicit identification of "developer scripts" and "end user scripts" might help.&amp;nbsp; "Developer scripts" would only be able to be created by developers and would have the ability to "runas" etc., while "end user scripts" could be created by anyone but would remain locked down within the current scripting security sandbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly enough, in 2.1.3 this distinction has already started appearing - Javascript scripts loaded from the classpath are trusted (ie. are "developer scripts") and have full access (via Rhino's native Java integration) to Java APIs (including the Foundation Services API), while Javascript scripts loaded from the repository are not trusted (ie. are "end user scripts") and run within the scripting security sandbox.&amp;nbsp; The only missing piece here would be to expose a "runas" Javascript API that's only available to "developer scripts" (Alfresco's existing Java "runas" API is not readily usable from Javascript due to the use of callbacks).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would be a good enhancement request (&lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/&lt;/A&gt;&lt;SPAN&gt;)!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 16:34:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148938#M103963</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-05-27T16:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148939#M103964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand your proposal to diferentiate between "developper scripts" and "end user scripts". It is probably a starting point to solve the missing functionality "runas" for simple workflow users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i do not quite understand is when you say that: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Again that would be a security risk, since it would allow users who have a R/W role in one space (eg. their user home) to upload a script that effectively has R/W access to any other space in the system. In other words, roles always have to be applied in the context of a space."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;since these actions/rules would be only executable in the space where they were created (i.e. uploaded document/script) and would have the permissions defined for them ONLY for the specific spaces where the rule (e.g. move to another space in simple workflow) and with the permissions allocated to them by the rule creator (i.e. its permissions and no others). Note that IÂ´m talking about rules associated to spaces and not "execute an action" in any space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, something should be done to cover this missing "runas" functionality for simple workflow if we really want "normal-joe-user" to create and use simple workflows effectively in Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 16:46:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148939#M103964</guid>
      <dc:creator>mabayona</dc:creator>
      <dc:date>2008-05-27T16:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148940#M103965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about you raise an enhancement request (at &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/&lt;/A&gt;&lt;SPAN&gt;), and post a link to it back here?&amp;nbsp; Things tend not to happen spontaneously.&amp;nbsp; :wink:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 17:15:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148940#M103965</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-05-27T17:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148941#M103966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can I e.g. create a custom role, which would enable invited users to WRITE to space, but not to READ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can this be done?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 13:25:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148941#M103966</guid>
      <dc:creator>msvoren</dc:creator>
      <dc:date>2008-05-28T13:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148942#M103967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do no think it is possible to have write permission without read one (i.e. before writing the system has to verify that the space exists, that no other document with equal name exists, …&amp;nbsp; -&amp;gt; Read permission.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is again a reason why the runas functionality is needed for simple workflow: to implement this common pattern that you are looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 14:23:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148942#M103967</guid>
      <dc:creator>mabayona</dc:creator>
      <dc:date>2008-05-28T14:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148943#M103968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't believe something like this is not already implemented..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shouldn't executing rules be "run as admin" as default ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 09:53:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148943#M103968</guid>
      <dc:creator>msvoren</dc:creator>
      <dc:date>2008-06-10T09:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148944#M103969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nope, "run as admin" as default would be a HUGE security hole. It would defeat the permissions concept. However, what is needed is a controlled way to do it. ThatÂ´s why the "runas" would be a good solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 09:59:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148944#M103969</guid>
      <dc:creator>mabayona</dc:creator>
      <dc:date>2008-06-10T09:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148945#M103970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you mabayona,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other way to implement this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm intrested in hacks, what ever.. ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 11:14:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148945#M103970</guid>
      <dc:creator>msvoren</dc:creator>
      <dc:date>2008-06-10T11:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148946#M103971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a way. If you use 2.9, use an advanced workflow. With advanced workflow you got the &amp;lt;runas&amp;gt; option. The process would be something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; Create an advance workflow that gets associated automatically to a entry ( using a rule):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/WorkflowAdministration#Step_7:_Integration_with_Rules_.28Optional.29" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/WorkflowAdministration#Step_7:_Integration_with_Rules_.28Optional.29&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This workflow has an action can move the e.g. document entered in a space e.g."inbox" into another space not writable by the issuer since it can be run with the privileges defined in &amp;lt;runas&amp;gt;xxx&amp;lt;/runas&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, you can do something similar (although more complex) in Java.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 11:35:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148946#M103971</guid>
      <dc:creator>mabayona</dc:creator>
      <dc:date>2008-06-10T11:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148947#M103972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much, will try that!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 09:00:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148947#M103972</guid>
      <dc:creator>msvoren</dc:creator>
      <dc:date>2008-06-12T09:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148948#M103973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Recall that end users can upload Javascript actions which is one of the way rules (whether related to simple workflow or not) can be implemented. Anything that end users can do script wise must be locked down from a security perspective (ie. the script must not be allowed to "run as" another user, amongst other things).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;But this already &lt;/SPAN&gt;&lt;STRONG&gt;is&lt;/STRONG&gt;&lt;SPAN&gt; an enormous security hole.&amp;nbsp; I simply set up a rule on my space to run&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my script on all incoming items.&amp;nbsp; As soon as anybody puts anything in my space the game is over:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my script is running as them!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given that the Alfresco permissions model makes it impossible to run even a simple workflow &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;without giving, say, reviewers access to write the properties of the directory, it's absolutely &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;trivial to make sure that people will drop things in your trap. (I won't spell it out any further).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Frankly, I would avoid using Alfresco for anything where even simple security is relevant, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at least until they've rethought the security model entirely, especially given that almost &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;all of the parent permission checks are commented out in the normal distribution!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We really need basic functionality which works robustly and predictably rather than new features.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 13:50:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148948#M103973</guid>
      <dc:creator>sacco</dc:creator>
      <dc:date>2008-06-13T13:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148949#M103974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do not quite understand what you mean. My experience using Alfresco and its security model is VERY GOOD and i find it robust and usable. Could you give an example of your claims? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do not forget that the security model has a very fine granularity and it is PER SPACE and per item. The fact that someone has acces to a space does no implies that has acces to other spaces.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would appreciate an elaborated sample of what you perceive as shortcomings of actual implementation to check it against my experience using alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 13:57:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148949#M103974</guid>
      <dc:creator>mabayona</dc:creator>
      <dc:date>2008-06-13T13:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to execute script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148950#M103975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, but it'll have to be next week, as I'm already two hours late!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 16:24:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permission-to-execute-script/m-p/148950#M103975</guid>
      <dc:creator>sacco</dc:creator>
      <dc:date>2008-06-13T16:24:38Z</dc:date>
    </item>
  </channel>
</rss>

