We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

olbarch's avatar
olbarch
Explorer | Level 3
3 years ago

API: List all teams and their workspaces id's in the Enterprise account

Hello! 

If I have an enterprise account, can I list a summary of all of the connected teams within the account via the API?

use case:  I have an enterprise account and several teams (other dropbox business accounts ) linked with the account. I want to list all the teams and get their workspace's ids in order to traverse them later. 

  • Each Dropbox Business team contains a number of accounts or team members, and each Dropbox account can only be a member of a single Dropbox team at a time. Even when you have access to multiple teams via the "Enterprise console", they still operate as separate teams on the API.

     

    When connecting an API app to a team, the access token only enables access to that one team. To connect to multiple different teams, the app would need to be authorized by an admin for each, getting a different access token for each team. You can check the team information for any particular access token using /2/team/get_info. You can check the account information for any particular account (including information about what team it is a member of, if any), using /2/users/get_current_account.

     

    The Dropbox API doesn't offer the ability to list the multiple "connected teams" like the Enterprise console does, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

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

    Each Dropbox Business team contains a number of accounts or team members, and each Dropbox account can only be a member of a single Dropbox team at a time. Even when you have access to multiple teams via the "Enterprise console", they still operate as separate teams on the API.

     

    When connecting an API app to a team, the access token only enables access to that one team. To connect to multiple different teams, the app would need to be authorized by an admin for each, getting a different access token for each team. You can check the team information for any particular access token using /2/team/get_info. You can check the account information for any particular account (including information about what team it is a member of, if any), using /2/users/get_current_account.

     

    The Dropbox API doesn't offer the ability to list the multiple "connected teams" like the Enterprise console does, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 8 hours ago
325 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!