Is it possible to get a list of topics in a category read by a specific user?


(Tobias Eigen) #1

I realize this is an oddball request but is it possible, perhaps via a data explorer query, to retrieve a full list of posts in a specific category that has been read by a specific user? Is it possible to create a list of topics and posts a user has seen generally? This might be interesting.

My story is that we have a private category which admins are not supposed to be reading. Everyone knows and can live with the fact that we have to have access to it for admin purposes but the understanding is that we mute the category in our prefs and do not actively go seek out messages in that category. Knowing that there’s a paper trail will help us to resist the temptation to do that. :slight_smile:


(Robert McIntosh) #2

Interesting use case - fairly unique I should imagine

Just from a practical point of view I am not sure it would help since the admin could simply impersonate a valid user and read it that way? Or maybe go into Anonymous mode (if you allow that).

Would it be easier to set it up as a group so they can PM each other instead? Not sure what rights admins have to private messages


(Tobias Eigen) #3

I think admin actions like impersonation are logged.

Anonymous mode wouldn’t work because it’s a private category only accessible to a particular group (plus admins).

Admins can also read PMs - they have access to everything. In any case, we prefer categories and topics to messages.

I’m not really too worried about all this and don’t want to create draconian or big brother-esque oversight of admins, but thought it would be worthwhile to have a way - even if it’s hard to do - to check in case there is ever a concern.


(Vinoth Kannan) #4
SELECT tu.topic_id, tu.last_read_post_number FROM topics 
LEFT OUTER JOIN topic_users AS tu ON topics.id = tu.topic_id 
WHERE topics.category_id = 4 AND tu.user_id = 1 AND tu.last_visited_at IS NOT NULL

I guess this is what you are looking for.


(Tobias Eigen) #5

that worked! many thanks. :seedling: