The API call to get channel members no longer returns LastViewedAt

Summary
The API call to list channel members no longer returns LastViewedAt

I can see this is deliberate, as git checkin ba86dfc5876b354b9d3c20ff45c08ca6f8426149 on 05 Nov 2025 adds code specifically to do this (unless you are logged in as the user in question, when it does set it).

Why has this change been made?

I have an important requirement to know when each user last logged in to Mattermost. I have been satisfying that by selecting the most recent date the user visited a channel (I have to check the channel members for all channels, anyway).

Is there an alternative way of finding out this information via the API? Note that I am not admin of the self-hosted Mattermost instance in question.

@crspeller your name is against the offending revision?

I figured that was going to break at least one person!

This was an unintentional information leak so it was removed for security.

Fortunately for you I think the user status API can solve your problem here as there is a last activity field that you can access for all users: API Documentation . There is also a bulk version of that API here: API Documentation . This doesn’t give you an exact login time but I am guessing since your previous one did not either then this is likely acceptable.