Hi,
@Greg-DB, last time you helped me, maybe also this time?
I'm trying to traverse a team's files and folder while having a Dropbox Business team access token.
This is my code:
dbx_t = DropboxTeam(token)
dbx_t_as_admin = dbx_t.as_admin(<team_member_id str>)
namespaces_list_obj = dbx_t.team_namespaces_list()
for namespace_meta in namespaces_list_obj.namespaces:
ns = namespace_meta.namespace_id
files_meta = dbx_t_as_admin.files_list_folder(path='ns:'+ns)
The code fell on the last line.
Getting this error:
'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.
I thought the as_admin method suppose to handle the "Dropbox-API-Select-Admin" header...
What am I doing wrong?
Thank you.