<?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 How to exclude Administrator from Document.GetUsersAndGroups operation ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-exclude-administrator-from-document-getusersandgroups/m-p/313071#M72</link>
    <description>&lt;P&gt;Following the "One step validation workflow tutorial", i created a custom permission and i'm using it to retrieve the users for a Workflow.CreateTask operation. Everything is working fine, except the "everything" permission being given to administrators includes my custom permission, so that a task is created for administrators.&lt;/P&gt;
&lt;P&gt;How can i get rid of the administrators in the user list ?&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jul 2012 08:42:04 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2012-07-03T08:42:04Z</dc:date>
    <item>
      <title>How to exclude Administrator from Document.GetUsersAndGroups operation ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-exclude-administrator-from-document-getusersandgroups/m-p/313071#M72</link>
      <description>&lt;P&gt;Following the "One step validation workflow tutorial", i created a custom permission and i'm using it to retrieve the users for a Workflow.CreateTask operation. Everything is working fine, except the "everything" permission being given to administrators includes my custom permission, so that a task is created for administrators.&lt;/P&gt;
&lt;P&gt;How can i get rid of the administrators in the user list ?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2012 08:42:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-exclude-administrator-from-document-getusersandgroups/m-p/313071#M72</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2012-07-03T08:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude Administrator from Document.GetUsersAndGroups operation ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-exclude-administrator-from-document-getusersandgroups/m-p/313072#M73</link>
      <description>&lt;P&gt;Did it with RunScript :&lt;/P&gt;
&lt;P&gt;assigned = Document.GetUsersAndGroups("my_permission")&lt;/P&gt;
&lt;P&gt;name_administrators = Document.GetUsersAndGroups("Everything")&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;foreach ( name_administrator : Context["name_administrators"]) 
{
    if( Context["assigned"].indexOf(name_administrator) &amp;gt;= 0 )
    {
        Context["assigned"].remove(Context["assigned"].indexOf(name_administrator));
    } 
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jul 2012 12:49:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-exclude-administrator-from-document-getusersandgroups/m-p/313072#M73</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2012-07-03T12:49:21Z</dc:date>
    </item>
  </channel>
</rss>

