Page 1 of 1

Remove users that have been inactive

Posted: Wed Aug 19, 2020 8:57 am
by sefres
Can anyone assist me? I am trying to run a query against the processmaker database to identify all users that have never logged in or have no cases, so that I can delete them. I cannot find the fields that would give me this information. I can see it in the list of users in the admin tab, but I cannot identify how processmaker pulls that data from the database.

Any help would be most appreciated.


Re: Remove users that have been inactive

Posted: Fri Jun 24, 2022 4:15 pm
by marceloayllon

What I can think of is that you can make a script with the use of executeQuery where you can see the LOGIN_LOG table and compare it with USERS and you can see which users never logged in and you can update it to inactive for example to users who never logged in

I pass you the information link so that you can use executeQuery