cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We love to hear how every person gets the most from Dropbox, and it seems everyone has a slightly different use for it - tell us yours 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: 

Unable to access shared team folder with Python API

Unable to access shared team folder with Python API

hekkta
New member | Level 2

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

Re: Unable to access shared team folder with Python API

hekkta
New member | Level 2

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

Re: Unable to access shared team folder with Python API

hekkta
New member | Level 2

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

Who's talking

Top contributors to this post

  • User avatar
    hekkta New member | Level 2
What do Dropbox user levels mean?
Need more support?