I created the whole issue with code examples here:
https://stackoverflow.com/questions/77577897/dropbox-api-python-how-to-get-access-to-team-and-user-files
I have a dropox business user which is member of the team. I would like to see the filesystem with the API like when I just login to dropbox.com: Member and team files and folder.
So I'm creating a dropbox authentication code with, but when i`m calling dbx.file_list_folders() I get error
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>.')
I can do something like that:
dbx_team = dropbox.DropboxTeam(ACCESS_TOKEN)
dbx = dbx_team.as_user("YOUR_TEAM_MEMBER_ID")
But then I need to know the "YOUR_TEAM_MEMBER_ID" - And it is not possible to get it from API. Or is it?
I created the whole issue with code examples here:
https://stackoverflow.com/questions/77577897/dropbox-api-python-how-to-get-access-to-team-and-user-files