cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Re: API "List Folder" , no team folder

API "List Folder" , no team folder

expertbet
New member | Level 2
Go to solution

The Api-Call "list-folder" only read und list my private folder, but not the team folder. All folders in the team folder are not displayed.


All permissions are set and i also tried the call with a "Dropbox-API-Select-Admin"-Header.


Without the "Admin-Header", no folder are listed because "the OAuth 2 access token you provided is for an entire Dropbox Business team". But with the "Admin-Header" there are only the private folder liested.


What could be my false?

Thomas

1 Accepted Solution

Accepted Solutions

Š—Š“рŠ°Š²ŠŗŠ¾
Legendary | Level 20
Go to solution

Hi peeps,

By default, Dropbox API always access user folder as default namespace. For accounts that user folder give access to all data particular user has access to (i.e. personal accounts and business account with team folders configuration), it's ok - you don't need to do anything in addition - the default is fine. For accounts which user folders are subfolders in the account root (business account with team space configuration - as yours seems to be) team spaces are outside your member folder (note team spaces, not classical folders) and that's why the default configuration doesn't work for you. You still have the same access but the folders you're looking for are outside your member folder and that's why stay "invisible". Such folders to become visible (spaces actually), you have to change your API root to match to the account root, not to member's folder (for such accounts they are different things). Changing root can be done using "Dropbox-API-Path-Root" HTTP header. šŸ˜‰ Take a look here for more info.

Hope this helps.

View solution in original post

6 Replies 6

Poui
Helpful | Level 5
Go to solution

Same issue, if you look at the "list_folders" api, I am pretty sure you will find all the old teams folder if you have the header 

include_deleted (optional)

set to True, I can't even get my team members ID, the request give me a 500 error

Š—Š“рŠ°Š²ŠŗŠ¾
Legendary | Level 20
Go to solution

Hi peeps,

By default, Dropbox API always access user folder as default namespace. For accounts that user folder give access to all data particular user has access to (i.e. personal accounts and business account with team folders configuration), it's ok - you don't need to do anything in addition - the default is fine. For accounts which user folders are subfolders in the account root (business account with team space configuration - as yours seems to be) team spaces are outside your member folder (note team spaces, not classical folders) and that's why the default configuration doesn't work for you. You still have the same access but the folders you're looking for are outside your member folder and that's why stay "invisible". Such folders to become visible (spaces actually), you have to change your API root to match to the account root, not to member's folder (for such accounts they are different things). Changing root can be done using "Dropbox-API-Path-Root" HTTP header. šŸ˜‰ Take a look here for more info.

Hope this helps.

Poui
Helpful | Level 5
Go to solution

It worked for me, but some third party app like Make.com (New naming for Intergromat) doesn't allow me to add a header inside their module, is there a way to permanently change an account API-Path-Root like it was before the Saturday update ?

Š—Š“рŠ°Š²ŠŗŠ¾
Legendary | Level 20
Go to solution

@Poui wrote:

..., is there a way to permanently change an account API-Path-Root like it was before the Saturday update ?


No there is no way to change API root permanently. It is and always has been the user/member folder by default - i.e. nothing changed in this regards. The only changed thing is (as you described) your account configuration, that puts your team folders outside your user folder as team spaces. šŸ™‹ That's it, nothing more.

About other third party providers, contact them to inform for the imperfection on their end:


@Poui wrote:

... doesn't allow me to add a header inside their module, ...


Good luck.

Š—Š“рŠ°Š²ŠŗŠ¾
Legendary | Level 20
Go to solution

@expertbet wrote:

...
Without the "Admin-Header", no folder are listed because "the OAuth 2 access token you provided is for an entire Dropbox Business team". But with the "Admin-Header" there are only the private folder liested.

...


@expertbet, In addition to all already said, you miss a fact that all file/folder access operations have to be performed on some user/member behalf! Otherwise error, like the one you got, is something normal. Yes, for all business accounts (regardless their configuration), tokens represent the team, not some user, and that's why you have to add either "Dropbox-API-Select-User" header or "Dropbox-API-Select-Admin" header with corresponding team_member_id (as you partially found out) to represent particular member. šŸ˜‰

Hope this sheds some more light.

expertbet
New member | Level 2
Go to solution

thank you very much. Now everything works and your explanations have helped me a lot.

Need more support?