Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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.
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.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter 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!