Forum Discussion

Daniel L.20's avatar
Daniel L.20
Helpful | Level 6
11 years ago

get email addresses of members of your shared_folders

According to documentation, you can get a list of members on a shared folder with https://api.dropbox.com/1/shared_folders/<id>
and the response will contain:
"members": [
{
"user": {
"uid": 87654321,
"display_name": "Jane P. User",
"same_team": true,
"member_id": "dbmid:abcd1234"
},
"role": "owner",
"active": true
},
...

Is there any way to determine the email address of that user? (eg- from the uid for that user) Note that this is information that is available to the folder owner via the Dropbox web interface.

27 Replies

Replies have been turned off for this discussion
  • Bogdan I.'s avatar
    Bogdan I.
    New member | Level 1
    10 years ago

    Any updates on this ?
    It's been almost a year... this should be a simple feature to implement.

  • Sinyshnar's avatar
    Sinyshnar
    New member | Level 2
    10 years ago

    Hi,

     

    I am joining this conversation as this would be really usefull. I cannot understand such a simple feature hasn't been migrated from v1 to v2.

     

    Please keep us posted :)

  • Daniel L.20's avatar
    Daniel L.20
    Helpful | Level 6
    9 years ago

    Since v1 api is now deprecated, had to transition to v2.  You can get a list of shared folders' members' emails, but now it requires multiple calls (with loops):

     

    To get all shared folders:

    https://api.dropboxapi.com/2/sharing/list_folders

    in order to find the shared_folder_id of a specific folder by name.

     

    To get all members (users) on a shared folder:

    https://api.dropboxapi.com/2/sharing/list_folder_members

    in order to find the account_id of each user.  This now has separate arrays for users who have accepted the share vs those who have merely been invited.

     

    To get the email address for a user:

    https://api.dropboxapi.com/2/users/get_account

  • makkc's avatar
    makkc
    New member | Level 2
    8 years ago

    https://api.dropboxapi.com/2/sharing/list_folders

     

    Newb question?  

     

    As this doesn't work, for me, as a direct cut and paste, can anyone point me in the direction of a guide to do this?

     

    At persent I'm faced with cutting and pasting >50 emails and names from a small online window or alternatively starting again.

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

    makkc I don't believe we have a guide/full working example for this specific functionality. This is an old thread with a lot of subscribers though, so please open a new thread with what you have so far and what isn't working for you so we can help with your code.

  • makkc's avatar
    makkc
    New member | Level 2
    8 years ago

    Thanks for the quick reply.  I've just solved the immediate problem by doing it longhand.

     

    The probelm for me arose when needing to verify the email list of people sharing a folder with a consent process when then folder in question was beginning to hold data coming under GDPR.  This is probably a 'business user' issue but even small organisations and groups can be affected by this legislation.

     

    Therefore the more general question is has Dropbox stared to consider any tools for this? I'll search for a GDPR thread.

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!