cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Folder/file ownership: API https://api.dropboxapi.com/2/sharing/list_folder_members

Folder/file ownership: API https://api.dropboxapi.com/2/sharing/list_folder_members

diegopascotto
Explorer | Level 3

In my case 'Diego' is the owner of the folder (and also the admin) while 'Roberto' has 'Can Edit' rights. Calling the sharing info API I get the following output:

{
    "users": [
        {
            "access_type": {
                ".tag": "editor"
            },
            "is_inherited": false,
            "user": {
                "account_id": "dbid:AAAl6V-VAYEz5PzvUmZhUu_KPL9m_li5___",
                "email": "XXX",
                "display_name": "Diego Xxx",
                "same_team": true,
                "team_member_id": "dbmid:AADwcKnvNdpOkOPN2uRqsp2lnbIVdf7x___"
            }
        },
        {
            "access_type": {
                ".tag": "editor"
            },
            "is_inherited": false,
            "user": {
                "account_id": "dbid:AABNuFJHhMtFuVgwzkhN39ikVy3FHinH___",
                "email": "xxx",
                "display_name": "Roberto Xxx",
                "same_team": true,
                "team_member_id": "dbmid:AADk5HtiURDzve7T-iGndBZE7v0tfQ94___"
            }
        }
    ],
    "groups": [],
    "invitees": []
}

So both users appear as 'editors' (which is true) but I cannot determine the owner.

Moreover: according to this link it should be possible to transfer the ownership to someone else, but the menu item 'make owner' is not visible (I can only see 'can view' and 'can edit'). Does it depend on the fact that i'm on a trial version?

1 Reply 1

Greg-DB
Dropbox Staff

Using /2/sharing/list_folder_members[/continue] is the correct way to look up the owner of a shared folder. The member who owns the shared folder, if any, would be identified by the "access_type" value being "owner" (in place of "editor" in your sample).

In your output, there isn't an owner listed though. This, along with the lack of the option on the web site, can be because the shared folder is in your "team space", meaning that it's owned by the team itself, as opposed to any specific member. So, team admins can manage this folder, but you can't transfer ownership to specific individuals.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?