silinternational/idp-id-broker

"Stale" users

Closed this issue · 5 comments

Imagine a user sits in this database without having its last_synced_date updated in the last 5 syncs for example. Do we need logic in place to purge, i.e., active=no, this user? @fillup @forevermatt

We talked about having a cron that checks for users not synced in past 48 hours and foreach does individual syncs.

Sorry, to be more specific:

  1. id-broker should have cron job looking for "stale" users.
  2. For each stale user, call id-sync webhook for an individual user sync/update.
  3. If webhook call to id-sync does not respond successfully, trigger alert.

Does the work we did in #74 change anything about this approach in your all's minds @fillup @forevermatt ?

I don't think so, @wcjr. Those changes in #74 seem to just be focused on password expiration dates, whereas this is about triggering an individual sync for users that haven't been synced recently.

ok, sounds good.