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's giving output for couple of them. Not sure if it's checking for a specific time range. I'm on 19.2, Any suggestions or other functions available in the market?
Thanks,
Riyaz
Discussion posts and replies are publicly visible
The rule appears to only take one username as a parameter. Have you tried looping over your list of users using a!forEach()? This may have performance implications but if this is just for testing or some off-peak maintenance utility, I figure it shouldn't be too bad.
Yes, I did that but I'm not getting timestamp for all users
a!forEach( expression: fv!item&"-"&getuserlastlogin(fv!item), items: getdistinctusers(cons!APPIAN_ALL_USERS))
Weird - so if you run the function on one of the usernames that's apparently not getting a timestamp in the forEach loop, does it come up with a timestamp then? If so, then I suppose there might be a limitation to the plug-in this rule is from ("User Login Details"). I was going to suggest you comment there but I can see you've already done so :)