cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Discuss Dropbox Developer & API

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

Download a file present in shared folder or group folder with team level access token

Download a file present in shared folder or group folder with team level access token

Bharath_Nadig
Explorer | Level 4
Go to solution

Hi, 

We are using Java sdk to access apis of dropbox. Can you guys please inform us how to download content of a file present in a shared folder or group folder with team level access token.

Thanks in advance

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

If you're using the Dropbox Java SDK with an app with the "team member file access" permission and want to download files via the team member file access feature, you should first make a DbxTeamClientV2 with the team's access token. Then, you can call DbxTeamClientV2.asAdmin or DbxTeamClientV2.asMember, depending on your use case, to get a DbxClientV2 with the "Dropbox-API-Select-Admin" or "Dropbox-API-Select-User" header set, respectively. 

You can also use DbxClientV2.withPathRoot to set the "Dropbox-API-Path-Root" header if needed. I recommend reviewing the Namespace Guide and Content Access Guide for more information on how the filesystem is structured and how to access different parts like this. 

You can use the resulting DbxClientV2 to download files as desired using the DbxUserFilesRequests.download method.

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

If you're using the Dropbox Java SDK with an app with the "team member file access" permission and want to download files via the team member file access feature, you should first make a DbxTeamClientV2 with the team's access token. Then, you can call DbxTeamClientV2.asAdmin or DbxTeamClientV2.asMember, depending on your use case, to get a DbxClientV2 with the "Dropbox-API-Select-Admin" or "Dropbox-API-Select-User" header set, respectively. 

You can also use DbxClientV2.withPathRoot to set the "Dropbox-API-Path-Root" header if needed. I recommend reviewing the Namespace Guide and Content Access Guide for more information on how the filesystem is structured and how to access different parts like this. 

You can use the resulting DbxClientV2 to download files as desired using the DbxUserFilesRequests.download method.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?