<?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 get the UserGroup with Web Script [Solved] in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-get-the-usergroup-with-web-script-solved/m-p/250126#M203256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try to use the runas attribute in the WebScript descriptor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;authentication runas="admin"&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;In this way Alfresco will check for authentication for that user and then it will execute the WebScript for the current user as the admin user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember that the runas attribute works only for WebScript stored in the classpath, so it doesn't work if you stores your webscripts in the repository (Company Home/Data Dictionary/Web Scripts Extension)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 10:31:57 GMT</pubDate>
    <dc:creator>openpj</dc:creator>
    <dc:date>2011-01-26T10:31:57Z</dc:date>
    <item>
      <title>How get the UserGroup with Web Script [Solved]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-get-the-usergroup-with-web-script-solved/m-p/250125#M203255</link>
      <description>Hi,I tried to get the user group with a web script but I had an error like : Access Denied.&amp;nbsp; You do not have the appropriate permissions to perform this operation.He's seem correct because it's a normal user that calls the web script.I search a solution to make a session to get my user group, becaus</description>
      <pubDate>Thu, 20 Jan 2011 17:01:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-get-the-usergroup-with-web-script-solved/m-p/250125#M203255</guid>
      <dc:creator>thomasberment</dc:creator>
      <dc:date>2011-01-20T17:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: How get the UserGroup with Web Script [Solved]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-get-the-usergroup-with-web-script-solved/m-p/250126#M203256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try to use the runas attribute in the WebScript descriptor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;authentication runas="admin"&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;In this way Alfresco will check for authentication for that user and then it will execute the WebScript for the current user as the admin user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember that the runas attribute works only for WebScript stored in the classpath, so it doesn't work if you stores your webscripts in the repository (Company Home/Data Dictionary/Web Scripts Extension)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 10:31:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-get-the-usergroup-with-web-script-solved/m-p/250126#M203256</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2011-01-26T10:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How get the UserGroup with Web Script [Solved]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-get-the-usergroup-with-web-script-solved/m-p/250127#M203257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you to your help. This attribute works fine !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 10:38:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-get-the-usergroup-with-web-script-solved/m-p/250127#M203257</guid>
      <dc:creator>thomasberment</dc:creator>
      <dc:date>2011-01-26T10:38:04Z</dc:date>
    </item>
  </channel>
</rss>

