<?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: execute a script as admin in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/execute-a-script-as-admin/m-p/198424#M151554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, it is possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to get an 'admin' ticket and then send it to the webscript you want to execute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/2.1_REST_API#Login" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/2.1_REST_API#Login&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts#Authenticating" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts#Authenticating&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, first you get a ticket making a call like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GET /alfresco/service/api/login?u={adminUsername}&amp;amp;pw={adminPassword}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then you call your webscript like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;contextPath&amp;gt;/&amp;lt;servicePath&amp;gt;/yourServce?alf_ticket=&amp;lt;ticket&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2009 14:07:31 GMT</pubDate>
    <dc:creator>damiar</dc:creator>
    <dc:date>2009-04-24T14:07:31Z</dc:date>
    <item>
      <title>execute a script as admin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-a-script-as-admin/m-p/198423#M151553</link>
      <description>hello,I have a java script&amp;nbsp; which is trigged when an outbound event occurs.For a question of rights on contents,&amp;nbsp; I want this script to be executed as if it was "admin" user connected even if the current connected user is anyone else.Is this possible ?Thanks in advanceChristophe</description>
      <pubDate>Wed, 22 Apr 2009 09:55:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-a-script-as-admin/m-p/198423#M151553</guid>
      <dc:creator>cpichon</dc:creator>
      <dc:date>2009-04-22T09:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: execute a script as admin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-a-script-as-admin/m-p/198424#M151554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, it is possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to get an 'admin' ticket and then send it to the webscript you want to execute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/2.1_REST_API#Login" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/2.1_REST_API#Login&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts#Authenticating" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts#Authenticating&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, first you get a ticket making a call like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GET /alfresco/service/api/login?u={adminUsername}&amp;amp;pw={adminPassword}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then you call your webscript like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;contextPath&amp;gt;/&amp;lt;servicePath&amp;gt;/yourServce?alf_ticket=&amp;lt;ticket&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:07:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-a-script-as-admin/m-p/198424#M151554</guid>
      <dc:creator>damiar</dc:creator>
      <dc:date>2009-04-24T14:07:31Z</dc:date>
    </item>
  </channel>
</rss>

