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: 

API /sharing/list_file_members and sharing/list_file_members/batch returning different result

API /sharing/list_file_members and sharing/list_file_members/batch returning different result

sagar_lonkar
Explorer | Level 4

API /sharing/list_file_members and sharing /list_file_members/batch returning different result for same file ID

 

/list_file_members/batch , return blank entries while 

/list_file_members/batch , return 1 owner entry for a file 

 

Please check below , for same file id , API returning different result.

 

https://api.dropboxapi.com/2/sharing/list_file_members
Parameters :
{
"file" : "id:s0-lLditOpQAAAAAAAAA2g",
"limit" : 1
}

Response:

{
"users": [
{
"access_type": {
".tag": "owner"
},
"is_inherited": true,
"user": {
"account_id": "dbid:AABemtJjAcrPhKLtzJk-JDwPC67EiaY9Icg",
"email": "shyam_shrivastava@persistent.com",
"display_name": "Shyam Shrivastava",
"same_team": true,
"team_member_id": "dbmid:AABedc4CzUXZubrvc-aI29rdoJG0xIOivdc"
}
}
],
"groups": [],
"invitees": []
}


https://api.dropboxapi.com/2/sharing/list_file_members/batch
Parameters :
{
"files" : ["id:s0-lLditOpQAAAAAAAAA2g"],
"limit" : 2
}

Response :
[
{
"file": "id:s0-lLditOpQAAAAAAAAA2g",
"result": {
".tag": "result",
"members": {
"users": [],
"groups": [],
"invitees": []
},
"member_count": 0
}
}
]

1 Reply 1

Greg-DB
Dropbox Staff

In the /2/sharing/list_file_members output you shared, I see the result has "is_inherited": true.

 

Per the /2/sharing/list_file_members/batch documentation, "Inherited users and groups are not included in the result", so this is the expected behavior.

Need more support?
Who's talking

Top contributors to this post

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