Is there a user "seen?" command?

Wondering if there’s a way in Mattermost interface to see when a user was last connected, either via API (so a bot can provide “seen XX?” command, or in the web interface.

Thanks!

Hi @xurizaemon, are you just looking for a way to get the last time the user’s status was online? Or are you looking to be able to see if a user has read messages in a channel?

If you’re looking for the last time the user’s status was online, we currently don’t expose that but we would welcome a pull request to add an API to get a single user’s status (which includes last activity time).

If you’re looking to see if a user has read messages in a channel, there’s currently no good way to do this but in the next release there will be a couple APIs you can use:

  1. There will be an API to get a single channel member which will contain the number of messages the user has read in a channel. You could compare that to the messages actually in the channel and to tell if the user has seen the messages.
  2. The channel member object will also have a last_viewed_at field which show the last time the user read a message on that channel.