Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
sffatcat
3 years agoNew member | Level 2
access token for a Team folder
is it possible to generate a access token for a Team folder? then use the token in script to send file to the Team folder? I know we can do a app on user's own personal folder with a token.
- 3 years ago
sffatcat Yes, as long as the app is authorized with the necessary permissions (i.e., full Dropbox access, with the necessary scopes, which would be files.metadata.read for listing files, and files.content.read for downloading files), the app could access anything that the account has access to, including team folders.
Greg-DB
Dropbox Community Moderator
3 years agosffatcat As Здравко indicated, access tokens are connected to a specific account/team, not specific existing team folders. Dropbox does not offer the ability to grant an app/access token access to specific existing folder(s) only, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
And as they mentioned, you can use the API to access whatever the connected account has access to, but in order to access the team space, if applicable, you would need to set the Dropbox-API-Path-Root header. You can find information on that in the Team Files Guide.
sffatcat
3 years agoNew member | Level 2
so, if as a user, doing a app, generate a token, and user also has permission to a Team folder.
does this token also works for accessing the Team folder?
- Greg-DB3 years ago
Dropbox Community Moderator
sffatcat Yes, as long as the app is authorized with the necessary permissions (i.e., full Dropbox access, with the necessary scopes, which would be files.metadata.read for listing files, and files.content.read for downloading files), the app could access anything that the account has access to, including team folders.
- AnkitKumarOjha9 months agoNew member | Level 1
Wait ! he is asking if he can access teams files with user access token , is it possible ? cause as per my understanding we need teams access token authorized by admin of the team and then access the teams folder of a particular user using asMember(). please correct me if I am wrong.
- DB-Des9 months ago
Dropbox Community Moderator
HI AnkitKumarOjha,
Team-linked apps would need the asMember() method to access a specific member's files and folders.
User-linked apps would have access to the files and folders of the individual who authorized the app, yes. This would include any team folders the individual member is a part of.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!