cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Discuss Dropbox Developer & API

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

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" }

 

 

 

3 Replies 3

Re: Not getting owner details in list_received_files api response

kylea
Dropboxer

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).

Re: Not getting owner details in list_received_files api response

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?

Re: Not getting owner details in list_received_files api response

Greg-DB
Dropboxer

@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.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    mukund Explorer | Level 3
  • User avatar
    kylea Dropboxer
What do Dropbox user levels mean?
Need more support?