- Products
- Learn
- Local User Groups
- Partners
- More
Check Point Jump-Start Online Training
Now Available on CheckMates for Beginners!
Welcome to Maestro Masters!
Talk to Masters, Engage with Masters, Be a Maestro Master!
ZTNA Buyer’s Guide
Zero Trust essentials for your most valuable assets
The SMB Cyber Master
Boost your knowledge on Quantum Spark SMB gateways!
Check Point's Cyber Park is Now Open
Let the Games Begin!
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
CheckFlix!
All Videos In One Space
Hello all,
Is it possible to disable inactive local users via API?
We have request from our customer to automate process for checking local users and disable them if they are not used for VPN access more than 30 days?
Users are locally created and authenticated over RADIUS (OTP).
Thanks in advance!
Regards,
--
Marko
Unfortunately last login is not something that is tracked in the user record on our end.
I suppose you can look for logins in the logs by querying the logs for that user and seeing if they logged in at all in the last 30 days.
Or query the RADIUS server logs for this information.
Then use the API to delete the relevant user via the API.
You need to go over several steps here:
Hello Val, PhoneBoy,
Thanks for quick reply and suggestions!
We'll try to do it on RADIUS or SIEM.
I'm also thinking about creating LogExporter configuration to send only login events to separate syslog server to decrease amount of logs we need to parse. We can then parse the logs and get list of users for required period.
Regards,
--
Marko
Why on a third party? You have VPN logs on Check Point side, and a user is mentioned in the log upon RAS VPN login.
Hi Val,
How can I search/parse logs from CLI/Bash? I need to automate it as much as possible.
Customer is using Splunk as SIEM, so there is possibility we can make most of the job there, as logs are already sent to Splunk.
I'm thinking of something like this:
https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-3...
But we don't have access to Splunk, as another team is responsible for it.
If we can automate it somehow on CP only, it would be great, cause then we will not depend on other teams and vendors
Regards,
--
Marko
You can run a SmartView report and export it to csv. One of the ways is explained in sk117773. Splunk also is a way, of course, if you send the related logs there
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY