Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Takashi Homma's avatar
Takashi Homma
Explorer | Level 4
2 years ago
Solved

how to check team space support for user-linked apps

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

12 Replies

Replies have been turned off for this discussion
  • SJ_Code's avatar
    SJ_Code
    Explorer | Level 3
    2 years ago

    Not sure why my last message didn't go through but thank you Greg for getting back to me with more information!

     

    Do you know when we can expect to have updated .NET SDK?

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

    SJ_Code It looks like your messages got caught in the spam filter for some reason. I just released them.

     

    Unfortunately I don't have a timeline to share for updates to the .NET SDK.

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!