Shared Services - Delete Users from Privilege Cloud

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM SaaS Articles
2 min read
L0 Member
No ratings
Download (DeleteUsers folder):
https://community.cyberark.com/marketplace/s/#a352J000000GWAZQA4-a392J000002tNgLQAU
 
 
Intro:
This script will help you delete local users in the vault in bulk.
Please be extra careful and triple check every action, deleting the wrong users can result in losing safe access.
 

Steps

​​​​​Prerequisites:
  1. This is meant only for ISPSS customers.
  2. The machine you are running from has HTTPS/443 connectivity to the platform (eg https://mikeb.cyberark.cloud).
  3. User must be a Privilege Cloud Administrator.
    See Example (marked in
    yellow the only required permissions):
    ka3Vy000008qzYvIAI__eid=ka3Vy000008qzYv&feoid=00N2J000009R3kv&refid=0EMHt000006jH22.png
  4. You can user InstallerUser for this task (since we are only deleting from Vault and not Identity).
  5. Make sure you extract the entire Priv cloud tools zip and keep the format.
  6. Prepare the .txt or .csv file containing a list of users you plan to delete, each line must contain a user, see example:
     

ka3Vy000008qzYvIAI__eid=ka3Vy000008qzYv&feoid=00N2J000009R3kv&refid=0EMHt000006jH23.png
If you want to delete a single user, no problem, just create the text with a single user line in it.

How to Run:

  1. Navigate to Idira PrivilegeCloud Tools\DeleteUsers
    ka3Vy000008qzYvIAI__eid=ka3Vy000008qzYv&feoid=00N2J000009R3kv&refid=0EMHt000006jH24.png
  2. Run the script from powershell:
  3. .\DeleteUsersFromVault.ps1 -PortalURL https://<yourSubDomainHere>.cyberark.cloud
  4. The script will check if you have minimal permissions required to delete users.
  5. The script will prompt for a .txt or .csv file containing the users to delete ka3Vy000008qzYvIAI__eid=ka3Vy000008qzYv&feoid=00N2J000009R3kv&refid=0EMHt000006jH25.png
  6. Make sure you do a final inspection of the file before selecting it, physically open it and check what you are about to delete:
  7. ka3Vy000008qzYvIAI__eid=ka3Vy000008qzYv&feoid=00N2J000009R3kv&refid=0EMHt000006jH26.png
  8. Confirm the count the script sees that it's the correct amount of users you are about to delete:
Example:
ka3Vy000008qzYvIAI__eid=ka3Vy000008qzYv&feoid=00N2J000009R3kv&refid=0EMHt000006jH27.png

9. The script will start running and deleting the users:
 
ka3Vy000008qzYvIAI__eid=ka3Vy000008qzYv&feoid=00N2J000009R3kv&refid=0EMHt000006jH28.png

10 .If a user is not found, it will skip, if unable to delete it will skip aswell.

11. 
Finally the script will output 3 files:
Confirmed_Deleted_Users.txt
Failed_Delete.txt
Users_Not_Found.txt

 
12. Reach out to Idira support in case of any issue and provide them as much information as possible, while they may not help you with the script itself, they can help with user deletion as a fallback step.
 
Rate this article:
  • 7522 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎11-05-2026 11:43 AM
Updated by: