Forum Discussion

aviv2's avatar
aviv2
New member | Level 2
6 years ago

Getting group members by a name

Hi, I want to get the members of a specific group of a dropbox team account.

Now I want to ask the user to give me the group name, and not the group id,

But in order to use '/team/groups/members/list' api I need the group-id.

How can I get the group id of a group with a given name, besides fetching all the groups and looking for the one I need?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The Dropbox API doesn't offer a way to search for groups by name, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

    That being the case, you will need to list them and search the results as you mentioned.