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: 

sharing/list_file_members do NOT return time_last_seen of members

sharing/list_file_members do NOT return time_last_seen of members

shaysey
Explorer | Level 3

Hi!

I'm trying to use the sharing/list_file_members in order to fetch the last time a shared file have been seen by its member.

According to the API, the response for each member should include the field time_last_seen, in case the member have opened the file.

 

However, it does not matter if members have opened it or not, the field is not being returned at all in the response.

 

Am I missing anything?

 

This is the API I'm doing:

curl -X POST "https://api.dropboxapi.com/2/sharing/list_file_members" --header "Content-Type: application/json" \
--header "Authorization: Bearer <AUTH_TOKEN>" --header "Dropbox-API-Select-User: <USER_ID>" --data "{\"file\": \"<FILE_ID\"}"

3 Replies 3

Greg-DB
Dropbox Staff

From the code you shared, it doesn't look like you're doing anything wrong. I just gave this a try myself and I am seeing time_last_seen set as expected.

 

Can you share some more information so I can look into this further? For instance, what steps did you take to share the file, and how did the recipient view it? Additionally, can you share the output you are getting? Feel free to open an API ticket if you'd prefer to share privately. In either case, make sure you still redact the access token. Thanks!

shaysey
Explorer | Level 3

Hi,!

 

Thanks for your response.

I'm using a Dropbox Standard plan. Can it be related to the fact that only in Dropbox Advanced / Professional state I see the checkbox of  'Viewer history' Is this the feature required in order to see the time_last_seen returned?

 

This is an example of the response I get:



 

{
  "users": [
    {
      "access_type": {
        ".tag": "viewer"
      },
      "permissions": [],
      "is_inherited": false,
      "user": {
        "account_id": "dbid:XXXX",
        "email": "XXX@XXXXX",
        "display_name": "XXXX",
        "same_team": false
      }
    },
    {
      "access_type": {
        ".tag": "viewer"
      },
      "permissions": [],
      "is_inherited": false,
      "user": {
        "account_id": "dbid:YYYY",
        "email": "YYYY",
        "display_name": "YYYY",
        "same_team": true,
        "team_member_id": "dbmid:YYYYY"
      }
    },
    {
      "access_type": {
        ".tag": "owner"
      },
      "permissions": [],
      "is_inherited": true,
      "user": {
        "account_id": "dbid:ZZZZZ",
        "email": "ZZZZZ,
        "display_name": "ZZZZZ",
        "same_team": true,
        "team_member_id": "dbmid:Z"ZZZ
      }
    }
  ],
  "groups": [],
  "invitees": []
}

 



 

Greg-DB
Dropbox Staff

Apologies, it appears that's correct and this field depends on that feature being enabled. I'll bring this up with the team to get that reflected in the API documentation.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    shaysey Explorer | Level 3
What do Dropbox user levels mean?