Actually that doesn’t show the list of deactivated users. Any other way to see them? I deactivated three users earlier this week and cannot find the list even in the staff action log.
AI-generated summary
The discussion revolves around an issue where deactivated users are not appearing in the staff action log. k4rtik initially asked for help finding the list of deactivated users and was directed to the staff action log by Mittineague. However, k4rtik and HAWK both reported that the usernames were not showing under the “Subject” field.
After further investigation, techAPJ explained that this issue occurs when a deactivated user is deleted, as the target user ID is stored in the logs, but there is no associated account with that ID. To resolve this, techAPJ added a change to include the username in the deactivated user logs, which will apply to all future deactivations.
You can go to
Admin → Logs → Staff Actions
and filter by
deactivate user
The users that were deactivated should appear beneath Subject
They don’t?
I can see the same thing here. The username showed under Subject last year (our last deactivated user showing was Feb '17) but not this year.
So if this is a confirmed bug, can someone look at it? Do I need to file a bug report elsewhere?
I’m not confirming that it’s a bug (it may have been deliberate), just that I can see the same thing here.
That said, I’ll recategorise so that we can get confirmation.
Sure, @techapj if you can repro maybe a quick fix?
Deactivated user doesn’t show up (under subject) in logs if they are deleted. This is because we store target user ID in logs, and if that user gets deleted there is no associated account with that ID.
I added the location as context to deactivated user logs which contains user ID and username via:
https://github.com/discourse/discourse/commit/3a6e137e70c0d57e977679b8a39494c17b1c469e
This is how the “deactivate user” log will look now:
Note that this change will apply on all future deactivations.

