- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-14-2021 02:21 PM
Hello everyone! I found this link (https://github.com/BinaryWasp/CyberArk_EPV_User_Cleanup) to set up a cleaner for users who haven't logged in for a while, but I couldn't make it work. Has anyone thought this up, could you tell me how to assemble one, please?
06-14-2021 02:55 PM
The ACTIVEUSERSREPORT PACLI command that the link you provide uses in its script has been depreciated for some time (unless you are using an old version of PACLI in which it is still present?).
There are capabilities in the API to get the lastSuccessfulLoginDate of a user that can be used in the logic to remove an EPVUser object which it is past the date at which they are classed to be stale.
06-14-2021 03:07 PM
Hey, pete! Thanks for response!
Would you know if there is a risk in using an old pacli? I don't know how to program API to create an automation like this link's script does...
06-14-2021 03:36 PM
Cannot comment on the risk of using an old pacli version, and do not know which version this command was removed in (cannot recall it being present in version 7.2)....
The inactive user report can still be run manually from PrivateArk client, if you know how to update the batch file to accept an input file, that maybe an option?
01-25-2023 02:42 AM
Hi Pete, am I right in understanding that the REST API (and subsequently also psPAS) does not support getting the "lastSuccessfulLoginDate" in "bulk", instead I have to request it per user "id" ?
I am also trying to do some regular cleanup, and getting a full userlist via psPAS is 2-3 seconds for 4000 users, but afterwards I have to run "Get-PASUser -id" for each of them, which is 3 seconds per user 🙂
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

