cloud-pipeline
cloud-pipeline copied to clipboard
Incorrect behavior of "Inactive/blocked for a long time users" notifications
Describe the bug
Strange behavior with receiving INACTIVE_USERS
email notifications was observed:
- some users in the list of "Users are blocked or inactive for a long time" have "floating" dates in "Blocked date" field. Although, they all have not ever been logged in the Platform ("Last login date" field is empty). These "floating" dates are changing daily at the same time - e.g., the "Blocked date" for the user1 at 5th of September was
Mon Sep 05 04:49:43 UTC 2022
, at 6th of September it is changed toTue Sep 06 04:37:20 UTC 2022
for the same user - periodically (currently observed daily, once at a day),
INACTIVE_USERS
email notification is being received with the list of users that previously was blocked but in this specific notification, for some of previously blocked users, field "Blocked date" is empty (i.e. users shown as unblocked, but only long inactive). Also, in this notification, there is a second table of users, that "were blocked since they were blocked into LDAP". That table includes users that were not blocked in the first table (and that were blocked in previous notifications), "Blocked date" for them is set as the current date (in the second table). After this notification, in further ones, the "floating" date in the "Blocked date" field (mentioned in the first item) is changing to the current - i.e., the process currently looks like:
- some of the Platform users were inactive for a long time, additionally some users were blocked since they were blocked into LDAP - also for a long time. After the configured period of inactivity/blocked, admins start to receive email notifications about that
- every day users previously blocked into LDAP (and in the Platform) become unblocked in the Platform. And then, these users become blocked again - automatically by the scheduled process due to #2319
- admins proceed to receive notifications with new "Blocked date" of the LDAP blocked users
Expected behavior
- Users, that were previously blocked in the LDAP, shall not be daily re-blocked in the Platform automatically (since the first blocking)
-
INACTIVE_USERS
email notifications shall contain a single fixed date for each such user
Environment
- Cloud Provider: NA
- Version 0.16.13214
- Browser: NA