EPV User Clean Up

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

EPV User Clean Up

L3 Networker

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?

4 REPLIES 4

L4 Transporter

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.

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...

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?

 

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 🙂

  • 843 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!