<?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>Get User Last Login Timestamp</title><link>https://community.appian.com/discussions/f/general/17460/get-user-last-login-timestamp</link><description>Hello, 
 I would like to pull the last login timestamp of all the users. getuserlastlogin(userName) function is not working when I pass all active users. It&amp;#39;s giving output for couple of them. Not sure if it&amp;#39;s checking for a specific time range. I&amp;#39;m on</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get User Last Login Timestamp</title><link>https://community.appian.com/thread/68828?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 15:08:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e53519f-f8c4-4168-a869-421763468ae1</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;That also seems to be what I&amp;#39;m seeing when I try in one of my dev environments.&amp;nbsp; I think at this point you might need to either wait for feedback from the plug-in author, or seek out alternative ways to do this.&amp;nbsp; I&amp;#39;ve dealt with it before (but a while ago) and it&amp;#39;s always been fairly tricky.&amp;nbsp; You might look into the &amp;quot;Login Information Parser&amp;quot; plug-in, which I&amp;#39;ve noticed has been updated quite a bit more recently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get User Last Login Timestamp</title><link>https://community.appian.com/thread/68827?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 14:59:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:17e04ae3-e810-448a-9763-33763f100a15</guid><dc:creator>riyazs</dc:creator><description>&lt;p&gt;I can see last one month files are non-archived but the function giving timestamp only for entries&amp;nbsp;in&amp;nbsp;today&amp;#39;s file.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get User Last Login Timestamp</title><link>https://community.appian.com/thread/68826?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 14:47:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c6e3aed0-c5de-42f2-815d-f514ab07c730</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Also - you might also try looking through the &amp;quot;login-audit.csv&amp;quot; log file backlogs and see whether there are logins represented in those that aren&amp;#39;t being returned by the function.&amp;nbsp; I&amp;#39;m guessing, if anything, that only those logins seen in the (non-archived) login-audit.csv file history will be reported by this function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get User Last Login Timestamp</title><link>https://community.appian.com/thread/68825?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 14:43:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be8c72a2-e9ed-4a3b-aefd-4d5d42bacdde</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Weird - so if you run the function on one of the usernames that&amp;#39;s apparently not getting a timestamp in the forEach loop, does it come up with a timestamp then?&amp;nbsp; If so, then I suppose there might be a limitation to the plug-in this rule is from (&amp;quot;&lt;a href="/b/appmarket/posts/user-login-details"&gt;User Login Details&lt;/a&gt;&amp;quot;).&amp;nbsp; I was going to suggest you comment there but I can see you&amp;#39;ve already done so :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get User Last Login Timestamp</title><link>https://community.appian.com/thread/68823?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 14:30:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:058a1eae-b66a-45b8-99c9-da6cedbeb7a2</guid><dc:creator>riyazs</dc:creator><description>&lt;p&gt;Yes, I did that but I&amp;#39;m not getting timestamp for all users&lt;/p&gt;
&lt;p&gt;a!forEach(&lt;br /&gt; expression: fv!item&amp;amp;&amp;quot;-&amp;quot;&amp;amp;getuserlastlogin(fv!item),&lt;br /&gt; items: getdistinctusers(cons!APPIAN_ALL_USERS)&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get User Last Login Timestamp</title><link>https://community.appian.com/thread/68822?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 14:27:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f798af6f-0924-42e7-9b47-a949f95e97c6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The rule appears to only take one username as a parameter.&amp;nbsp; Have you tried looping over your list of users using a!forEach()?&amp;nbsp; This may have performance implications but if this is just for testing or some off-peak maintenance utility, I figure it shouldn&amp;#39;t be too bad.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>