<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Determine users who have not logged in &amp;lt;20&amp;gt; days</title><link>https://community.appian.com/discussions/f/rules/17233/determine-users-who-have-not-logged-in-20-days</link><description>We have a requirement where we need to return the list of users who have not logged in the last 20 days from today(). 
 Can anyone provide a sample code/approach how to do it? 
 Currently we are thinking of accessing the audit-log and storing in a table</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Determine users who have not logged in &lt;20&gt; days</title><link>https://community.appian.com/thread/73280?ContentTypeID=1</link><pubDate>Sun, 12 Apr 2020 14:15:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:64f4f805-a731-4b35-8e89-85caad06f8ef</guid><dc:creator>arunramanathtm</dc:creator><description>&lt;p&gt;Step1 :&amp;nbsp;Read last 20 days audit log file one by one and&amp;nbsp;save it to DB&lt;br /&gt;Step 2:&amp;nbsp;&amp;nbsp;Then in an expression rule, fetch data and Identify&amp;nbsp;the users who donot have an entry in the entire dataset&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Determine users who have not logged in &lt;20&gt; days</title><link>https://community.appian.com/thread/69269?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 15:39:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:749404af-efd1-4e3c-973c-9a315aad3188</guid><dc:creator>paulc919</dc:creator><description>&lt;p&gt;This works really well until you hit a High Availability arrangement, as the Process to read the audit log only has visibility of the log it is running on - if server 1 then it can only see log ins for server 1, not from server 2 and server 3. We have an open enhancement request to make the Shared Logs folder accessible so we can bring together the info from the 3 HA servers into one place.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Determine users who have not logged in &lt;20&gt; days</title><link>https://community.appian.com/thread/69241?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 11:54:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7511c861-8bf6-49dc-ba67-dc361d0f3e60</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;I have used the&amp;nbsp;approach you describe to do achieve this. I do not know of any other option. The implementation I delivered:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;reads the audit log&lt;/li&gt;
&lt;li&gt;loads the data into a database table&lt;/li&gt;
&lt;li&gt;checked each entry to see when a User last logged in&lt;/li&gt;
&lt;li&gt;sent that user a warning email if they hadn&amp;#39;t logged in for a certain period of time (and recorded the fact that we&amp;#39;d sent them an email so that we didn&amp;#39;t keep sending them the same email)&lt;/li&gt;
&lt;li&gt;if they didn&amp;#39;t log in within 3 days of their warning email then the process deactivated their account&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;(you hadn&amp;#39;t said what your specific use case is but this is the most likely reason you want to check, to see if the licence can be freed up)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>