You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

GoldunRoman's avatar
GoldunRoman
New member | Level 2
2 years ago

How can I get files.metadata.read permission?

I`m writing some code in order to parse my dropbox folders and files but in task.Wait(); line I have error: BadInputException: Error in call to API function "files/list_folder": Your app is not permitted to access this endpoint because it does not have the required scope 'files.metadata.read'. The owner of the app can enable the scope for the app using the Permissions tab on the App Console.
When I went to the App Console files.metadata.read button is grey and unactive. How can I enable it?

Sorry for bad English, It is not my native language 🙂

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    It sounds like you do have the "files.metadata.read" scope enabled on the app you're looking at on the App Console. It would be greyed out if you also have at least one other scope enabled which relies on "files.metadata.read", and so you can't disable "files.metadata.read" without disabling the other scope(s) first. While greyed out, it would still be checked, though it may be hard to see the grey check on some screens or at certain sizes.

     

    In any case, the error you're getting would indicate that you're using an access token for an app that does not have that particular scope enabled. Are you sure you're using an access token for the particular app you're looking at on the App Console?

     

    Also, make sure you use the "Submit" button on the bar at the bottom of the page to save any changes you make.

     

    And, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens or refresh tokens.

     

    If you need help checking on the state of a particular app, feel free to open an API ticket from the account that owns the app.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,915 PostsLatest Activity: 2 days ago
333 Following

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 or Facebook.

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!