We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

vsTheijs's avatar
vsTheijs
Explorer | Level 4
5 years ago
Solved

How to find out if email address is team member?

I want to know if it is possible to check through the (basic) API whether a given email address is a team member or not.

 

My case is the following:

I want to let people share files through our own app. When the active user has Dropbox Teams and sharing files externally is turned off, I would like to detect whether a 'Share' operation will work before actually performing it. For this I would like to check the email address of the recipient that the user has specified. If the recipient is a Team Member, sharing is allowed. Otherwise a message is shown and sharing is not allowed.

 

I figured out how to check if external sharing is allowed, by checking the SharingPolicies for the active account. I get the active account using 'Users/GetCurrentAccount'.

 

If I could get the AccountId for the recipient, I could call 'Users/GetAccount' which should tell me whether it is a Team Member or not. However, I don't know how to get the AccountId for a given email address.

 

Can someone tell me how to get the AccountId for a given email address, or if I could use a different approach to check whether an email address is a Team Member?

 

NOTE: I would like to avoid using the Business API.

  • No, unfortunately it's not possible to get the account ID for any given email address, or otherwise check if the corresponding account is on the same team, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

1 Reply

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

    No, unfortunately it's not possible to get the account ID for any given email address, or otherwise check if the corresponding account is on the same team, 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.6,033 PostsLatest Activity: 2 hours ago
409 Following

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