Hi team,
I'm wondering what would be your recommandation to disable practitioners that did not login for 1 year ?
The idea is to disable the user so that the Practitioner that doesn't use the account cannot be hacked and no data can be leaked because of ghost accounts.
My first though was to do something like a CRON job that would do the following :
- Get all practitioner
- Get all users associated to the Practitioner
- For each user get the last Login
I'm afraid that this can take quite some time if the database has a lot of Practitioners.
So I'm wondering if there is a better way.
Thank you !