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: 

Re: Unable to access shared team folder with Python API

Unable to access shared team folder with Python API

hekkta
New member | Level 2
Go to solution

I have in the past been able to access files in the dropbox account with python.

 

We recently upgraded to a business account with teams and shared folders.

 

I can now only access the non-shared folders, it's my understanding that I now need to create a dbx class "as a user" to access the shared folders.

 

This is my code:

 

dbx = dropbox.DropboxTeam(token).as_admin('dbid:AABKkpEBW..._N9WJo')

 

dbx.files_list_folder('')

 

I'm receiving an error that implies that the id is incorrect:

 

'Error in call to API function "files/list_folder": Invalid select user id format'

 

I've also tried the same call with "as_user" and a non-admin id but I get the same error.

 

I found these ids with the 'team_members_list' function.

 

Any help is greatly appreciated!

1 Accepted Solution

Accepted Solutions

hekkta
New member | Level 2
Go to solution

Solved!

 

I was using the account id and not the member id. Member ids start with dbmid as opposed to account ids that start with dbid.

View solution in original post

1 Reply 1

hekkta
New member | Level 2
Go to solution

Solved!

 

I was using the account id and not the member id. Member ids start with dbmid as opposed to account ids that start with dbid.

Need more support?