By: Alejandro Calderon user 13 Jun 2022 at 7:11 p.m. CDT

1 Response
Alejandro Calderon gravatar
Hi there! I've been working in a solution to delete all the inactive users through a script using the SCIM and my question is: Do you have any way to check the users that haven't login in a long time o anything to see inactive users? Kind regards...

By Michael Schwartz Account Admin 13 Jun 2022 at 10:04 p.m. CDT

Michael Schwartz gravatar
You might have to do this via LDAP. Check the operational attributes for a sample user. To see the operational attributes, run `ldapsearch` command with the + character for attributes. You must escape the character using a means appropriate to your shell. ``` $ ldapsearch -h localhost -p 1636 -D "cn=Directory Manager" -Z -X \ -j /tmp/.pw -b "o=gluu" "(uid=foo)" "+" ``` If the user is not modified during login, you may need to add the last login time in an interception script. Depending which attribute you use, you could then potentially get this info in a SCIM request.