Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
sagar_lonkar
2 years agoExplorer | Level 4
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 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
- Greg-DB2 years ago
Dropbox Community Moderator
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.
About 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!