I have a bot user that does a bunch of tasks via the api, it is a trusted user and an admin user, and it has been deactivated twice this week for some reason. I cannot see anything in the staff action logs, or the error logs that hints as to why the user was deactivated.
Can you help me, either with information about which logs to look into, or possible causes a user gets deactivated by the system.
I think it may have been the InvalidateInactiveAdmins script, looks like that will not generate a log entry. Can anyone confirm since iām not famliar with the details of the source.
Yes thatās correct. We should certainly look at adding a log for that - it can be very confusing if you are not aware of the feature. I will add it to my todo list.
If youāre running the latest version of Discourse, then we have recently added some extra checks before deactivating admin accounts:
If the user has created posts, or has a recently used API key attached to it, then it will not be deactivated. Note that the API key must be specifically attached to this user, and not an āall usersā key.
I realize there are issues with not taking updates, our use of discourse is not standard and the acual discorse server is not accessed by the users only used as a backend, so I think we are good for now.
That our users are mad because behavior has changed and we cannot undo the change since the team does not want to add an option for the legacy behavior is a bigger issue to us