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

developerscorpio's avatar
developerscorpio
Explorer | Level 3
2 years ago

Team access token

Getting error "This token is not associated with a team" when trying to access team data using User access token. Can you please help to find out how we can create access token for Team?

  • developerscorpio From your description, it sounds like you have a user-linked access token, but are trying to access a team-linked endpoint. Team-linked endpoints require a team-linked access token, in order to operate on the team itself.

     

    To get a team-linked access token, you would need to connect the app with the relevant team scopes enabled. You can find more information on how to use the authorization functionality in the OAuth Guide and authorization documentation.

     

    Note that only team admins can connect team-linked apps. If you are not on a team, you will not be able to use team scopes/endpoints.

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi developerscorpio,

    There is "Dropbox-API-Select-User" header that has to be used with appropriate team member id. For supported SDKs, if you have used, there are corresponding methods where the same id can be passed to.

    Hope this helps.

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

    developerscorpio From your description, it sounds like you have a user-linked access token, but are trying to access a team-linked endpoint. Team-linked endpoints require a team-linked access token, in order to operate on the team itself.

     

    To get a team-linked access token, you would need to connect the app with the relevant team scopes enabled. You can find more information on how to use the authorization functionality in the OAuth Guide and authorization documentation.

     

    Note that only team admins can connect team-linked apps. If you are not on a team, you will not be able to use team scopes/endpoints.