Removing users that are in the DB, but not in the Interface

Hi all,

Running v 5.3.75 on docker

One question, Is it safe to remove users directly from the “users” table in the database? I remove users from the configuration interface and yet they still remain in the database, only to get email notifications at a later date and I can’t do anything to act on them. I would like to just remove them completely from the system.

If there is another path to control users that are missing from the interface yet still get email messages from the system, please let me know. In the past this has caused issues and having some way to control information IN sents out automatically is very important.

Thanks

Updated to v v5.3.78-C77

Still shows two users in the interface:

While in the database there are 9 (including the two expected above):

Two previously removed users get email notifications. I want to remove all but the two I have active from IN safely.

Hi,

It sounds like a bug if deleted users are still getting notifications.

cc @david

I attempted to try and surface the user in the interface so I could control its notification settings:

UPDATE users SET is_deleted = 0 WHERE email = 'user@domain.com';

But, this did not work (also restarted the server, just in case still not seen).

@cwl

As a general rule never manually delete anything in the database.

There are two tables of interest here.

  1. users table
  2. company_users table

The users table is the table which contains the user and their personal information.

The company_users table is the linking table which associates a user with a company. It would be the company_users table that we need to look at here.

This is the first time we’ve had a report that deleted users are receiving system notifications, so I’ll look into this and see whether i can reproduce this.

As a general rule, I always follow the general rule (hence my asking here because, as the general rule goes, deleting stuff from any underlying database could be very dangerous).

With more information you’ve provided about the database, I can show more of what’s going on in my database… hopefully it helps.

User ids 2, 4, and 6 have been “deleted” and have no representation in the interface to control notification settings yet they have begun getting email notifications (when is hard to say, but perhaps some logic in the application eventually allowed for this condition):

If there’s a way to just turn off the notifications such as:

UPDATE company_user SET notifications = ‘{“email”:[]}’ WHERE user_id = 2;

… than I’m all for it. Let me know.

@cwl that will work also.

I can see the issue on our side and a fix will be included in the next release.