<?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: Get a list of Namespaces a single user has access to in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/604471#M2722</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1550083"&gt;@jacques_coney&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Do you mean something like mentioned &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/If-the-cursor-is-too-long-list-folder-continue-api-always/m-p/603627/highlight/true#M28045" target="_blank" rel="noopener"&gt;here&lt;/A&gt;? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 17:21:37 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2022-06-20T17:21:37Z</dc:date>
    <item>
      <title>Get a list of Namespaces a single user has access to</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/603872#M2714</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;I've been interacting with a number of end points and I'm trying to rely upon the permissions dropbox has defined in RBAC when knowing whether a user can use a number of files returned from a search.&lt;BR /&gt;&lt;BR /&gt;Currently i'm polling for event changes using &lt;SPAN&gt;&lt;A href="https://api.dropboxapi.com/2/files/list_folder" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/files/list_folder&lt;/A&gt;&lt;BR /&gt;What i'm wanting to do is store the `shared_parent_id` / `shared_id` associated with that file/folder so that when it comes to searching I can compare those id's with a list of names spaces an individual has access to so that I can filter out files that individual can access and return them from elastic search.&lt;BR /&gt;&lt;BR /&gt;Staring with a user email:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;On request to get things we get the list of all members using &lt;A href="https://api.dropboxapi.com/2/team/members/list_v2" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/team/members/list_v2&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Get the team_member_id&amp;nbsp;when the email matches&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Call &lt;A href="https://api.dropboxapi.com/2/users/get_current_account" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/users/get_current_account&lt;/A&gt; using the Dropbox-API-Select-User with the team_member_id to get the root_namespace_id&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Call &lt;A href="https://api.dropboxapi.com/2/files/list_folder" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/files/list_folder&lt;/A&gt; using the Dropbox-API-Select-User with the team_member_id and the Dropbox-API-Path-Root with the root_namespace_id to get a list of namespaces the user currently can access.&lt;BR /&gt;&lt;BR /&gt;The problem i've noticed is that if there is:&lt;BR /&gt;&lt;SPAN&gt;- If User A has Access to &lt;/SPAN&gt;FOLDER A&lt;SPAN&gt; as a namespace, if &lt;/SPAN&gt;FOLDER A/FOLDER B&lt;SPAN&gt; is a separate namespace it’s &lt;/SPAN&gt;shared_id&lt;SPAN&gt; will be different to &lt;/SPAN&gt;FOLDER A&lt;SPAN&gt; so how can we when polling for an event whereFOLDER A/FOLDER B&lt;/SPAN&gt;/example.txt&lt;SPAN&gt; is created confirm whether User A should have access or not.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I've seen that I could call&amp;nbsp;&lt;A href="https://api.dropboxapi.com/2/files/list_folder" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/files/list_folder&lt;/A&gt;&amp;nbsp;recursively too see all they have access to but the amount of files to do that on the fly isn't a performant feasibility. So my overall question - Is there a way of just getting a list of namespaces a user has access to not just the root? Or alternatively is there a better way of achieving this?&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 06:43:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/603872#M2714</guid>
      <dc:creator>jacques_coney</dc:creator>
      <dc:date>2022-06-20T06:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of Namespaces a single user has access to</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/603964#M2717</link>
      <description>&lt;P&gt;If you want to list everything a user has in their account, you can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;. Anything returned there when calling for that user is something that the user has access to. However note that users may have access to namespaces that aren't currently mounted in their account, and so would not be returned there. And as you said though, that returns folder contents, not just the namespaces themselves, so that can be excessive. In any case, note that if you do use that, make sure you also implement &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;/2/files/list_folder/continue&lt;/A&gt;. Also, you can have Dropbox perform the recursion for you by setting "recursive": true on &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;, if you aren't already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folders" target="_blank"&gt;/2/sharing/list_folders&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folders-continue" target="_self"&gt;/2/sharing/list_folders/continue&lt;/A&gt; to list all of the shared folders a user has access to. That won't give you all namespaces technically, since it excludes "app folders" which are type of namespace. That may be acceptable for your use case though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A different approach would be to list all namespaces for the entire team, using &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-namespaces-list" target="_self"&gt;/2/team/namespaces/list&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-namespaces-list-continue" target="_self"&gt;/2/team/namespaces/list/continue&lt;/A&gt;. You could then list the members of each team folder or shared folder using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folder_members" target="_blank"&gt;/2/sharing/list_folder_members&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folder_members-continue" target="_blank"&gt;/2/sharing/list_folder_members/continue&lt;/A&gt; with &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access" target="_blank"&gt;Dropbox-API-Select-Admin&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 15:12:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/603964#M2717</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-17T15:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of Namespaces a single user has access to</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/604347#M2720</link>
      <description>&lt;P&gt;Thanks Greg for the thorough reply.&lt;BR /&gt;&lt;BR /&gt;The&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folders" target="_blank" rel="noopener noreferrer"&gt;/2/sharing/list_folders&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folders-continue" target="_self" rel="noopener noreferrer"&gt;/2/sharing/list_folders/continue&lt;/A&gt;&amp;nbsp;seems to be along the lines of what I am after. However, when playing around with the endpoint it if in the scenario with Folder A all contents within in are shared by extension because A is shared so A/B/C etc under the same namespace. Is it possible to have the endpoint/an endpoint return only a list of parent shared folders based upon their access so something like:&lt;BR /&gt;- User has access to all of A so in the response it is just A not A/B, A/C etc&lt;BR /&gt;- but also in the scenario where the user has access to A/B and A/C but not A it returns A/B and A/C&lt;BR /&gt;if that makes sense. Basically my concern is wanting to do this on the fly getting every nested folder back in the response based upon the large data set I have will become a performance issue having to call the `continue` endpoint an unreasonable amount of times, so just trying to see if I can thin out the information of some nested folder information that can be implied? Or is this how it currently works?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 10:20:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/604347#M2720</guid>
      <dc:creator>jacques_coney</dc:creator>
      <dc:date>2022-06-20T10:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of Namespaces a single user has access to</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/604471#M2722</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1550083"&gt;@jacques_coney&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Do you mean something like mentioned &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/If-the-cursor-is-too-long-list-folder-continue-api-always/m-p/603627/highlight/true#M28045" target="_blank" rel="noopener"&gt;here&lt;/A&gt;? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 17:21:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/604471#M2722</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-06-20T17:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of Namespaces a single user has access to</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/604589#M2723</link>
      <description>&lt;P&gt;It sounds like the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folders" target="_blank" rel="noopener noreferrer"&gt;/2/sharing/list_folders&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folders-continue" target="_self" rel="noopener noreferrer"&gt;/2/sharing/list_folders/continue&lt;/A&gt; endpoints are still the best option here. There isn't another option like that. These will list each shared folder that the user has access to, so whether or not something is listed there depends on if the particular folder was shared as a shared folder. (Each shared folder is a "namespace' with some members/permissions set. You can find more information on that in &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_self"&gt;the Team Files Guide&lt;/A&gt;.)&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 01:54:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-a-list-of-Namespaces-a-single-user-has-access-to/m-p/604589#M2723</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-21T01:54:53Z</dc:date>
    </item>
  </channel>
</rss>

