Forum Discussion

diegopascotto's avatar
diegopascotto
Explorer | Level 3
6 years ago

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

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?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 13 hours ago
351 Following

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!