cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App 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: 

Dropbox for Business API Access token login process.

Dropbox for Business API Access token login process.

Simone11
Explorer | Level 4
Go to solution

Hi There.

I have an iOS apllication written in Objective-C. I have successfully integrated Dropbox API in my app and I can upload and download data from dropox even using the Access Token for it. 

Short code sample to dowload data as per the document as follows:

 [[client.filesRoutes listFolder:dbPathToIpad]
                     setResponseBlock:^(DBFILESListFolderResult *response, DBFILESListFolderError *routeError, DBRequestError *networkError) {
                         NSLog(@"response__:%@",response);
                         if (response) {......
}

Now, I have shifted my account to dropbox for business and have few team members in my team. Can I get the process to access folders in each team members account using Access Token of Dropbox for Business API. I am the admin of the account and I have generated Access Token for Dropbox For Business and given permission to access team files.

The idea here is to bypass Auth login using Access Token generated. And the app is destributed to my team members. they should somehow access ther own account using this Access token I genrated and the specific folder structure in their account. Please let me know how is this possible since this is a requirement from my Client.

There is nothing much given to access files using Dropbox for Business API in this link: https://github.com/dropbox/dropbox-sdk-obj-c

Also, if I use this Business Access token I have created in current code of mine i get error response from dropbox as :

DropboxBadInputError[{
    ErrorContent = "Error in call to API function \"files/list_folder\": This API function operates on a single Dropbox account, but the OAuth 2 access token you provided is for an entire Dropbox Business team.  Since your API app key has team member file access permissions, you can operate on a team member's Dropbox by providing the \"Dropbox-API-Select-User\" HTTP header or \"select_user\" URL parameter to specify the exact user <https://www.dropbox.com/developers/documentation/http/teams>.";
    RequestId = 2cad3ee7906d1fed388f2146c456116d;
    StatusCode = 400;
    UserMessage = nil;
}];

Please provide me with link or any reference on how to handle this.

12 Replies 12

Bharath_Nadig
Explorer | Level 4
Go to solution

Similar option is there for JAVA SDK ?

Bharath_Nadig
Explorer | Level 4
Go to solution

Is there a similar option for java sdk?

Greg-DB
Dropbox Staff
Go to solution

@Bharath_Nadig Yes, the Dropbox Java SDK also has support for the "member file access" feature. You can use the DbxTeamClientV2.asMember or DbxTeamClientV2.asAdmin methods to get a DbxClientV2 with the 'Dropbox-API-Select-User' or 'Dropbox-API-Select-Admin' header set, respectively.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Bharath_Nadig Explorer | Level 4
  • User avatar
    zainulabideen Explorer | Level 4
What do Dropbox user levels mean?