<?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 Is it possible to access the current users groups from within a NXQL query? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-to-access-the-current-users-groups-from-within-a/m-p/324041#M11042</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;in our project we have a set of new document types with a property 'assignee'. The documents can be assigned to a user or a user group which means that the user/group will be responsible to work on the specified documents.&lt;/P&gt;
&lt;P&gt;Now I am trying to create a Content View that shows all the documents that the current user has to work on.
For the documents directly assigned to the user this is pretty easy:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState = 'Assigned' and rt:assignee = ?&lt;/CODE&gt;
where #{currentUser.name} is used as the parameter&lt;/P&gt;
&lt;P&gt;But is it possible to access the groups that the user is member of inside the NXQL query?&lt;/P&gt;
&lt;P&gt;Thanks,
Dirk&lt;/P&gt;</description>
    <pubDate>Thu, 06 Sep 2012 20:36:21 GMT</pubDate>
    <dc:creator>Dirk_Wenke</dc:creator>
    <dc:date>2012-09-06T20:36:21Z</dc:date>
    <item>
      <title>Is it possible to access the current users groups from within a NXQL query?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-to-access-the-current-users-groups-from-within-a/m-p/324041#M11042</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;in our project we have a set of new document types with a property 'assignee'. The documents can be assigned to a user or a user group which means that the user/group will be responsible to work on the specified documents.&lt;/P&gt;
&lt;P&gt;Now I am trying to create a Content View that shows all the documents that the current user has to work on.
For the documents directly assigned to the user this is pretty easy:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState = 'Assigned' and rt:assignee = ?&lt;/CODE&gt;
where #{currentUser.name} is used as the parameter&lt;/P&gt;
&lt;P&gt;But is it possible to access the groups that the user is member of inside the NXQL query?&lt;/P&gt;
&lt;P&gt;Thanks,
Dirk&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 20:36:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-to-access-the-current-users-groups-from-within-a/m-p/324041#M11042</guid>
      <dc:creator>Dirk_Wenke</dc:creator>
      <dc:date>2012-09-06T20:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to access the current users groups from within a NXQL query?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-to-access-the-current-users-groups-from-within-a/m-p/324042#M11043</link>
      <description>&lt;P&gt;Not sure if i understand the question, but current user groups should be available by:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#{currentUser.groups}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#{currentUser.allGroups}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if you'd like to get all groups user is a member of (resolving groups hierarchy)&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 09:11:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-to-access-the-current-users-groups-from-within-a/m-p/324042#M11043</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-10-18T09:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to access the current users groups from within a NXQL query?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-to-access-the-current-users-groups-from-within-a/m-p/324043#M11044</link>
      <description>&lt;P&gt;How do I get the group to the User with NXQL?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 18:58:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-to-access-the-current-users-groups-from-within-a/m-p/324043#M11044</guid>
      <dc:creator>klebervz_</dc:creator>
      <dc:date>2014-03-27T18:58:00Z</dc:date>
    </item>
  </channel>
</rss>

