<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Disable inactive local users via API? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127492#M6160</link>
    <description>&lt;P&gt;Hi Val,&lt;/P&gt;&lt;P&gt;How can I search/parse logs from CLI/Bash? I need to automate it as much as possible.&lt;/P&gt;&lt;P&gt;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.&lt;BR /&gt;I'm thinking of something like this:&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141903" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141903&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But we don't have access to Splunk, as another team is responsible for it.&lt;/P&gt;&lt;P&gt;If we can automate it somehow on CP only, it would be great, cause then we will not depend on other teams and vendors&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;--&lt;BR /&gt;Marko&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 11:11:38 GMT</pubDate>
    <dc:creator>Marko_Keca</dc:creator>
    <dc:date>2021-08-20T11:11:38Z</dc:date>
    <item>
      <title>Disable inactive local users via API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127313#M6152</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Is it possible to disable inactive local users via API?&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;Users are locally created and authenticated over RADIUS (OTP).&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;--&lt;BR /&gt;Marko&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 10:56:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127313#M6152</guid>
      <dc:creator>Marko_Keca</dc:creator>
      <dc:date>2021-08-18T10:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Disable inactive local users via API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127326#M6155</link>
      <description>&lt;P&gt;Unfortunately last login is not something that is tracked in the user record on our end.&lt;BR /&gt;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.&lt;BR /&gt;Or query the RADIUS server logs for this information.&lt;BR /&gt;Then use the API to delete the relevant user via the API.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 13:55:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127326#M6155</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-08-18T13:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Disable inactive local users via API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127339#M6156</link>
      <description>&lt;P&gt;You need to go over several steps here:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;query all defined users and save to the list&lt;/LI&gt;
&lt;LI&gt;run the list over VPN logs to see which where not logged in during the last month. To do that, you will need to keep at least 31 days of logs available. make a list of candidates to remove&lt;/LI&gt;
&lt;LI&gt;run delete user over the list from step 2&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 15:21:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127339#M6156</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2021-08-18T15:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Disable inactive local users via API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127490#M6158</link>
      <description>&lt;P&gt;Hello Val, PhoneBoy,&lt;/P&gt;&lt;P&gt;Thanks for quick reply and suggestions!&lt;BR /&gt;We'll try to do it on RADIUS or SIEM.&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;We can then parse the logs and get list of users for required period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;--&lt;BR /&gt;Marko&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 10:55:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127490#M6158</guid>
      <dc:creator>Marko_Keca</dc:creator>
      <dc:date>2021-08-20T10:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Disable inactive local users via API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127491#M6159</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 11:00:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127491#M6159</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2021-08-20T11:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Disable inactive local users via API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127492#M6160</link>
      <description>&lt;P&gt;Hi Val,&lt;/P&gt;&lt;P&gt;How can I search/parse logs from CLI/Bash? I need to automate it as much as possible.&lt;/P&gt;&lt;P&gt;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.&lt;BR /&gt;I'm thinking of something like this:&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141903" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141903&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But we don't have access to Splunk, as another team is responsible for it.&lt;/P&gt;&lt;P&gt;If we can automate it somehow on CP only, it would be great, cause then we will not depend on other teams and vendors&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;--&lt;BR /&gt;Marko&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 11:11:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127492#M6160</guid>
      <dc:creator>Marko_Keca</dc:creator>
      <dc:date>2021-08-20T11:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Disable inactive local users via API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127499#M6161</link>
      <description>&lt;P&gt;You can run a SmartView report and export it to csv. One of the ways is explained in&amp;nbsp;&lt;SPAN&gt;sk117773. Splunk also is a way, of course, if you send the related logs there&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 11:59:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-inactive-local-users-via-API/m-p/127499#M6161</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2021-08-20T11:59:08Z</dc:date>
    </item>
  </channel>
</rss>

