cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We just wanted to say thank you! Check out our customer appreciation video here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to check team space support for user-linked apps

how to check team space support for user-linked apps

Takashi Homma
Explorer | Level 4

I've read the document and have questions about supporting team spaces, specifically for user-linked apps.
https://dropbox.tech/developers/api-updates-to-better-support-team-spaces

 

1. For user-linked apps, can I determine if team space is enabled by checking the value of `root_info.root_namespace_id` from /2/users/get_current_account?

 

2. The document mentions that the response of has_team_shared_dropbox differs between updated team spaces and team spaces, suggesting it cannot be used to determine the usage of a team space. Is this correct?

 

> All users with a team space previously had a root_info of type team from /2/users/get_current_account. Going forward, users with the updated team space will have root_info of type user. Accordingly, do not rely on the root_info type to determine if a team uses the team space; that only indicates if the team shares the team space across all members. Instead, use /2/users/features/get_values to determine the features of a user account.

 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff

1. With a user-linked app, to determine if an account has a team space, you can use the 'distinct_member_home' feature on the /2/users/features/get_values endpoint. (The 'root_info.root_namespace_id' value from /2/users/get_current_account alone does not indicate the existence of a team space, as every account has some root namespace ID.)

 

2. That's correct, the 'team_shared_dropbox' feature values only indicate if the account is on a team with a shared team space in particular, so it cannot be used to detect if the account is on a team with a team space of any type.

 

If you have a user-linked app and want to check if the account has a team space (shared or not), use the above mentioned 'distinct_member_home' feature on the /2/users/features/get_values endpoint.

View solution in original post

3 Replies 3

Takashi Homma
Explorer | Level 4

In user-linked apps, I want to know if the user has team space enabled. Can I determine its activation by using the get_current_account API response, based on specific conditions?

 

- There is `"account_type": { ".tag": "business" }` entry.
- There is `"team"` key.
- `root_namespace_id` and `home_namespace_id` is different.

Greg-DB
Dropbox Staff

1. With a user-linked app, to determine if an account has a team space, you can use the 'distinct_member_home' feature on the /2/users/features/get_values endpoint. (The 'root_info.root_namespace_id' value from /2/users/get_current_account alone does not indicate the existence of a team space, as every account has some root namespace ID.)

 

2. That's correct, the 'team_shared_dropbox' feature values only indicate if the account is on a team with a shared team space in particular, so it cannot be used to detect if the account is on a team with a team space of any type.

 

If you have a user-linked app and want to check if the account has a team space (shared or not), use the above mentioned 'distinct_member_home' feature on the /2/users/features/get_values endpoint.

Takashi Homma
Explorer | Level 4

Thank you for the very clear and understandable answer!

It was incredibly helpful. You're perfect!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Takashi Homma Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?