<?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 can I list the folders synchronized with Nuxeo Drive? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-list-the-folders-synchronized-with-nuxeo-drive/m-p/314812#M1813</link>
    <description>&lt;P&gt;The &lt;CODE&gt;DriveSynchronized&lt;/CODE&gt; facet is &lt;STRONG&gt;not&lt;/STRONG&gt; the only “flag” identifying items that are synced with Nuxeo Drive. To list all enabled sync roots, one can also use that NXQL query:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT ecm:uuid FROM Document WHERE drv:subscriptions/*1/enabled = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Jan 2020 09:12:00 GMT</pubDate>
    <dc:creator>Mickaël_Schoent</dc:creator>
    <dc:date>2020-01-09T09:12:00Z</dc:date>
    <item>
      <title>How can I list the folders synchronized with Nuxeo Drive?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-list-the-folders-synchronized-with-nuxeo-drive/m-p/314809#M1810</link>
      <description>&lt;P&gt;We would like to know the folders / workspaces marked as Nuxeo Drive synchronization roots by our users.&lt;/P&gt;
&lt;P&gt;This would allow us to raise awareness among our users who synchronize big volumes of documents by setting synchronization roots "too high" in the document hierarchy.&lt;/P&gt;
&lt;P&gt;Do you have an SQL query to list such documents?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 13:20:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-list-the-folders-synchronized-with-nuxeo-drive/m-p/314809#M1810</guid>
      <dc:creator>ataillefer_</dc:creator>
      <dc:date>2015-12-03T13:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I list the folders synchronized with Nuxeo Drive?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-list-the-folders-synchronized-with-nuxeo-drive/m-p/314810#M1811</link>
      <description>&lt;P&gt;The following query allows to list the documents (id and name) marked as Nuxeo Drive synchronization roots for each user:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;select p.id, p.name, s.username, s.enabled from subscriptionitem s, hierarchy h, hierarchy p where s.id = h.id and h.parentid = p.id order by username asc;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It returns something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;id                                         name                username        enabled
"a66c5b71-eb18-42eb-8c6c-5ba3caae4d40";    "Documentation";    "user1";        t
"a66c5b71-eb18-42eb-8c6c-5ba3caae4d40";    "TestFolder";       "user1";        f
"7cfe624d-5edf-412e-a822-cd6e7524be5d";    "TestFolder";       "user2";        t
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The "enabled" field flags the documents that are actually registered as a synchronization root, in which case it is set to 't' for 'true'.
It can be set to 'f' for 'false' if the document has once been registered as a synchronization root then unregistered.&lt;/P&gt;
&lt;P&gt;You can also find the list of users who registered the document with id XXX as a synchronization root with this query:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;select username, enabled from subscriptionitem s, hierarchy h where s.id = h.id and h.parentid = 'XXX';
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that we have created &lt;A href="https://jira.nuxeo.com/browse/NXP-17617"&gt;NXP-17617&lt;/A&gt; to track a new feature which consists of having a UI in the Admin Center to list the synchronization roots for a given user and the other way around the users registered for a given document.
Administrators could use it to track the "abusive" synchronization roots such as top level folders, then ask users to unregister from them or do it directly.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 13:26:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-list-the-folders-synchronized-with-nuxeo-drive/m-p/314810#M1811</guid>
      <dc:creator>ataillefer_</dc:creator>
      <dc:date>2015-12-03T13:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I list the folders synchronized with Nuxeo Drive?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-list-the-folders-synchronized-with-nuxeo-drive/m-p/314811#M1812</link>
      <description>&lt;P&gt;&lt;STRONG&gt;NXQL&lt;/STRONG&gt; query &lt;CODE&gt;SELECT * FROM Document WHERE ecm:mixinType='DriveSynchronized' AND ecm:isVersion=0 AND ecm:isTrashed=0&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;curl&lt;/STRONG&gt; command:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;curl -su Administrator:Administrator -H 'Content-Type: application/json' &lt;A href="http://localhost:8080/nuxeo/api/v1/search/lang/NXQL/execute" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/search/lang/NXQL/execute&lt;/A&gt; -G \
--data-urlencode "query=SELECT * FROM Document WHERE ecm:mixinType='DriveSynchronized' AND ecm:isVersion=0 AND ecm:isTrashed=0" \
| jq
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 18:23:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-list-the-folders-synchronized-with-nuxeo-drive/m-p/314811#M1812</guid>
      <dc:creator />
      <dc:date>2019-11-26T18:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I list the folders synchronized with Nuxeo Drive?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-list-the-folders-synchronized-with-nuxeo-drive/m-p/314812#M1813</link>
      <description>&lt;P&gt;The &lt;CODE&gt;DriveSynchronized&lt;/CODE&gt; facet is &lt;STRONG&gt;not&lt;/STRONG&gt; the only “flag” identifying items that are synced with Nuxeo Drive. To list all enabled sync roots, one can also use that NXQL query:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT ecm:uuid FROM Document WHERE drv:subscriptions/*1/enabled = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2020 09:12:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-list-the-folders-synchronized-with-nuxeo-drive/m-p/314812#M1813</guid>
      <dc:creator>Mickaël_Schoent</dc:creator>
      <dc:date>2020-01-09T09:12:00Z</dc:date>
    </item>
  </channel>
</rss>

