Skip to content

Files

Latest commit

 

History

History

Personal Privileged Accounts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Create-PersonalPrivilgedAccounts

Supported version: CyberArk PAS version 11.6 and above

Main Capabilities

  • Create personal Safes and Privileged Accounts from a .csv file.
  • In the example scripts, you will find examples of concurrent sessions and bulk onboarding.

Usage

Create-PersonalPrivilgedAccounts.ps1 -PVWAURL <string> -CSVPath <string> [-AuthType <cyberark,ldap,radius>] [-OTP <string>] [-SafeNamePattern <string>] [-PlatformID <string>] [-DisableSSLVerify] [<CommonParameters>]

API references

Parameters

  • PVWAURL
    • The URL of the PVWA that you are working with.
    • Note that the URL needs to include 'PasswordVault', for example: "https://myPVWA.myDomain.com/PasswordVault"
    • When working with PVWA behind a load balancer, note that the session must be defined as sticky session. Alternatively, work with a single node PVWA.
  • DisableSSLVerify (NOT RECOMMENDED)
    • Disable the SSL certificate verification.
    • Use only if your PVWA environment doesn't include a valid SSL certificate.
  • AuthType
    • Authentication types for logon.
    • Available values: CyberArk, LDAP, RADIUS
    • Default value: CyberArk
  • OTP
    • In cases where RADIUS authentication is used and one-time-password is needed, use this parameter to enter the OTP value.
  • CsvPath
    • The .csv file path for the Accounts to be onboarded.
  • SafeNamePattern
    • String pattern to name the Safes.
    • Use an asterix ('*') to decide the place holder of the user name.
    • You can use only one asterix in the template.
    • Default value: "*ADM"
  • PlatformID
    • Default value: "WindDomain"

Examples

Example 1 - Basic Scenario

Admin wants to create a personal Safe for 2 users, each safe will include a single privileged account.

CSV example (privAccounts.csv):

UserName SafeName AccountUser AccountAddress AccountPlatform Password
User1 User1 User1_ADM myDomain.com WinDomainPrivileged Ch4ng3Me!
User2 User2 User2_ADM myDomain.com WinDomainPrivileged Ch4ng3Me!

The command would be:

Create-PersonalPrivilgedAccounts.ps1 "https://myPVWA.myDomain.com/PasswordVault" -CsvPath .\privAccounts.csv

Example 2 - Different Safe Pattern Name

Admin wants to create a personal Safe for 2 users, each Safe will include a single privileged account.

  • Using default Platform ID (WinDomain)
  • Safes will follow a template of "<UserName>_ADM"

CSV example (privAccounts.csv):

UserName AccountUser AccountAddress Password
User1 User1_ADM myDomain.com Ch4ng3Me!
User2 User2_ADM myDomain.com Ch4ng3Me!

The command would be:

Create-PersonalPrivilgedAccounts.ps1 "https://myPVWA.myDomain.com/PasswordVault" -CsvPath .\privAccounts.csv -SafeNamePattern "*_ADM"

If we want the same thing for Safes with a different name pattern of "Priv_<UserName>", the command would be:

Create-PersonalPrivilgedAccounts.ps1 "https://myPVWA.myDomain.com/PasswordVault" -CsvPath .\privAccounts.csv -SafeNamePattern "Priv_*"

Example 3 - Custom Properties

Admin wants to create a personal Safe for 2 users, each Safe will include a single privileged account.

  • For each account, we want to add a custom property called Owner. It will be written directly in the .csv file.
  • Safes will follow a template of "<UserName>_ADM".

CSV example (privAccounts.csv):

UserName AccountUser AccountAddress Password Owner
User1 User1_ADM myDomain.com Ch4ng3Me! User 1
User2 User2_ADM myDomain.com Ch4ng3Me! User 2

The command would be:

Create-PersonalPrivilgedAccounts.ps1 "https://myPVWA.myDomain.com/PasswordVault" -CsvPath .\privAccounts.csv -SafeNamePattern "*_ADM"

If you want to exclude CPM management for the accounts, you can use the following CSV example (privAccounts.csv):

UserName AccountUser AccountAddress Password Owner enableAutoMgmt manualMgmtReason
User1 User1_ADM myDomain.com Ch4ng3Me! User 1 True
User2 User2_ADM myDomain.com Ch4ng3Me! User 2 False No change

The command would be:

Create-PersonalPrivilgedAccounts.ps1 "https://myPVWA.myDomain.com/PasswordVault" -CsvPath .\privAccounts.csv -SafeNamePattern "*_ADM"