---
title: "Comment by mat on \"Add dependent accounts in CyberArk (now Idira) with PACLI and PowerShell\" | Hashnode"
description: "Any idea how to read existing depandants programatically from a vault in a migration scenario?"
url: "https://hashnode.com/posts/add-dependent-accounts-in-cyberark-with-pacli-and-powershell/61d832094b84101d2c3ee0f5/comment/63de728822ecad9870b5db95"
---

[Discussion](https://hashnode.com/posts/add-dependent-accounts-in-cyberark-with-pacli-and-powershell/61d832094b84101d2c3ee0f5)

Comment [Add dependent accounts in CyberArk (now Idira) with PACLI and PowerShell](https://hashnode.com/posts/add-dependent-accounts-in-cyberark-with-pacli-and-powershell/61d832094b84101d2c3ee0f5)

[mat](https://hashnode.com/@secdude)

[Feb 4, 2023](https://hashnode.com/posts/add-dependent-accounts-in-cyberark-with-pacli-and-powershell/61d832094b84101d2c3ee0f5/comment/63de728822ecad9870b5db95)

Any idea how to read existing depandants programatically from a vault in a migration scenario?

[Tim Schindler](https://hashnode.com/@timschindler)

[Feb 4, 2023](https://hashnode.com/posts/add-dependent-accounts-in-cyberark-with-pacli-and-powershell/61d832094b84101d2c3ee0f5/comment/63de728822ecad9870b5db95#reply-63de742b16b1848f6752a526)

I haven't tried this myself but I would investigate iterating through all safes and for each account/object in a safe, look for the `MasterPassName` file category/property. If the value is null, then it is not a dependent account whereas if there is a value, then it is a dependent account and also 'points' to the parent.

You would need to do this with PACLI/PoShPACLI.
