<?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: Dropbox Java SDK List Shared Links of a Team Folder in Business Account in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Java-SDK-List-Shared-Links-of-a-Team-Folder-in-Business/m-p/665523#M30125</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1629037"&gt;@abhinovClairvoyant2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you set proper &lt;A title="DBX Team Files Guide" href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank" rel="noopener"&gt;root namespace&lt;/A&gt; for your call? 🧐&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2023 13:25:27 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2023-03-06T13:25:27Z</dc:date>
    <item>
      <title>Dropbox Java SDK List Shared Links of a Team Folder in Business Account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Java-SDK-List-Shared-Links-of-a-Team-Folder-in-Business/m-p/665391#M30124</link>
      <description>&lt;P&gt;I am trying to access all shared links in dropbox business account (team folder) using Java SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am able to get&amp;nbsp;shared Link Metadatas for files inside personal space of a particular member of the team -&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;List&amp;lt;SharedLinkMetadata&amp;gt; sharedLinkMetadataList = client.asMember(memberId).sharing().listSharedLinks().getLinks()&lt;SPAN&gt;; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;But, this does not return the shared links of the team folder and files within the teamspace.&amp;nbsp; How can I list the shared links of all files and folders within the team folder? Using client.asAdmin() does not work&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;client.asAdmin(memberId).sharing().listSharedLinks().getLinks()&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, I am NOT able to get shared links inside teamSpace folder&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2023-03-06 09-45-48.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/35847iCBF2516E18CEED8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2023-03-06 09-45-48.png" alt="Screenshot from 2023-03-06 09-45-48.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 21:14:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Java-SDK-List-Shared-Links-of-a-Team-Folder-in-Business/m-p/665391#M30124</guid>
      <dc:creator>abhinovClairvoyant2</dc:creator>
      <dc:date>2023-03-07T21:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Java SDK List Shared Links of a Team Folder in Business Account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Java-SDK-List-Shared-Links-of-a-Team-Folder-in-Business/m-p/665523#M30125</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1629037"&gt;@abhinovClairvoyant2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you set proper &lt;A title="DBX Team Files Guide" href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank" rel="noopener"&gt;root namespace&lt;/A&gt; for your call? 🧐&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 13:25:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Java-SDK-List-Shared-Links-of-a-Team-Folder-in-Business/m-p/665523#M30125</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-03-06T13:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Java SDK List Shared Links of a Team Folder in Business Account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Java-SDK-List-Shared-Links-of-a-Team-Folder-in-Business/m-p/665576#M30128</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1629037"&gt;@abhinovClairvoyant2&lt;/a&gt; As Здравко noted, in order to access the contents of the team space, you'll need to set the root for the call to the team space. You can find information on how that works in &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank"&gt;the Team Files Guide&lt;/A&gt; they linked to. For the Java SDK in particular, you'd use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.3.0/com/dropbox/core/v2/DbxClientV2.html#withPathRoot(com.dropbox.core.v2.common.PathRoot)" target="_self"&gt;the withPathRoot method&lt;/A&gt; to set that header.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 16:39:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Java-SDK-List-Shared-Links-of-a-Team-Folder-in-Business/m-p/665576#M30128</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-03-06T16:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Java SDK List Shared Links of a Team Folder in Business Account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Java-SDK-List-Shared-Links-of-a-Team-Folder-in-Business/m-p/665599#M30129</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@488936AC5FA64023548E32631AFD9803/emoticons/1f600.png" alt=":grinning_face:" title=":grinning_face:" /&gt;&lt;/P&gt;&lt;P&gt;After setting the root namespace it works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;String rootNS =&lt;BR /&gt;        client.asAdmin(memberId).users().getCurrentAccount().getRootInfo().getRootNamespaceId()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;List&amp;lt;SharedLinkMetadata&amp;gt; sharedLinkMetadataList = client&lt;BR /&gt;        .asMember(memberId)&lt;BR /&gt;                .withPathRoot(PathRoot.&lt;SPAN&gt;namespaceId&lt;/SPAN&gt;(rootNS))&lt;BR /&gt;                .sharing()&lt;BR /&gt;                .listSharedLinks()&lt;BR /&gt;                .getLinks()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Mar 2023 17:28:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Java-SDK-List-Shared-Links-of-a-Team-Folder-in-Business/m-p/665599#M30129</guid>
      <dc:creator>abhinovClairvoyant2</dc:creator>
      <dc:date>2023-03-06T17:28:03Z</dc:date>
    </item>
  </channel>
</rss>

