Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Sean P.12's avatar
Sean P.12
New member | Level 2
9 years ago

Know if access_token is for an App Folder or Full Access?

We have a bunch of mixed up authenticated accounts from the past few years in our database, where some were given "Full Access" early on and later it was changed to just using the "App Folder".

 

Is there any way of using the API to know if the access_token we have is within an App Folder, or to the whole account?

 

We basically want to switch all accounts to App Folders, but only want to alter those that need it. We'll have to move folders and also store a default path in the DB.

 

Having looked through the documentation I can't see anything that gives this info, any thoughts?

2 Replies

  • axew3's avatar
    axew3
    Collaborator | Level 8
    9 years ago

    Hello, i was doing an answer about, but before to start a lonely way to discover how to i've give a search and find out this post: so i take for good that this is the best way to know if an app is Folder App or Full Dropbox:


    For future reference, to solve my query I did the following:
    Sent an API request to /sharing/get_folder_metadata with a made up shared_folder_id
    This will always return an error (unless you somehow managed to pick a shared_folder_id that exists!)
    If the error contained a response (which will always be invalid_id) then the access_token has Full Dropbox access
    If the error was empty, then the access_token has only App Folder access

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!