cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Discuss Dropbox Developer & API

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

Re: Not getting owner details in list_received_files api response

Not getting owner details in list_received_files api response

mukund
Explorer | Level 3

Hello,

I am using Dropbox_User_Endpoints.

I am trying to access owner name of files which are shared to me(Received files).

As per document it should shows "owner_display_names" field but I am not receiving it.

api: https://api.dropboxapi.com/2/sharing/list_received_files

Response:

{ "access_type": { ".tag": "viewer" }, "id": "id:Ke9OphgV2zsAAAAAAAAAHw", "name": "Screenshot 2021-04-09 at 11.54.18 AM.png", "owner_team": { "id": "dbtid:AAA0C48MwJeb2bk98ri5iW4f7q0yK3sCIAY", "name": "cms" }, "policy": { "member_policy": { ".tag": "anyone" }, "resolved_member_policy": { ".tag": "anyone" }, "acl_update_policy": { ".tag": "editors" }, "shared_link_policy": { ".tag": "anyone" }, "viewer_info_policy": { ".tag": "enabled" } }, "preview_url": "https://www.dropbox.com/scl/fi/zo9fd9ye20tmp74wll7db/Screenshot-2021-04-09-at-11.54.18-AM.png?dl=0", "time_invited": "2021-05-05T07:51:33Z" }

 

 

 

5 Replies 5

kylea
Dropbox Staff

The documentation for list_recieved_files does indicate that the owner display names are optional return values; they are not guaranteed to be fetched (https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_received_files).

mukund
Explorer | Level 3

May I know the reasons of this field to be absent? 

Is it possible that I am not an admin and using user api's so I can't access team details? Or there are other reason for not getting owner info?

Greg-DB
Dropbox Staff

@mukund Unfortunately I don't have more specific information to share as to when 'owner_display_names' should or shouldn't be expected in the response. I'll send this along to the team to request more specific documentation on that, but I can't promise if/when that would be updated.

mobilizer
New member | Level 2

I am having the same issue. This information is very important so that the user knows who shared the file with them. If there is another way to access such details for a shared file, please let me know, otherwise it would be good to see the owner details returned with the api response.

 

Thanks for your help.

Greg-DB
Dropbox Staff

@mobilizer Thanks for the note! I don't have any updates or other solution to add here, but I'll follow up if/when I do.

Need more support?