Forum Discussion

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

Error: user for app is not enabled when refreshing access token

When I refresh my access token using this API

curl https://api.dropbox.com/oauth2/token \
    -d grant_type=refresh_token \
    -d refresh_token=<REFRESH_TOKEN> \
    -d client_id=<APP_KEY> \
    -d client_secret=<APP_SECRET>

I get this error: user for app is not enabled.

I can't find information about this error anywhere in the documentation or somewhere else on the Internet.

Please help me. What are the possible causes of this error and how could I troubleshoot it? Thanks.

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    That error for this call indicates that this failed because the account that owns the app for that refresh token/app key/app secret is disabled. When an account is disabled, any apps owned by the account are also effectively disabled.

     

    You'll need to instead get and use a refresh token/app key/app secret for an active app owned by an active account.

About Dropbox API Support & Feedback

Node avatar for 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!