Importing PAM Resources
How to bulk import KeeperPAM resources
Overview
Keeper supports importing of PAM resources in bulk through the Keeper Commander CLI. This allows you to import a large number of resources, along with a PAM Configuration, Gateway and project folders.
In this page, we will demonstrate importing a large number of domain-joined Windows servers and local admin accounts.
Overview of the Workflow
Create a JSON file that includes information about your project and resources.
A CSV file can be used to create or merge content into this JSON file. This process is documented here.
Import the JSON file with the
pam project importcommand.
Prerequisites
Keeper Commander v17.1.8 or newer
Verify with keeper version
KeeperPAM License
Enabled in the Keeper Admin Console
Admin role with Manage PAM permission
Enabled in the Keeper Admin Console
1 - JSON Structure
You can find an example JSON file below:
The JSON body is made up of these basic components:
Many attributes can be applied to resources and user objects, which are documented here.
Users can be placed either in the users array of the pamDirectory resource (to model Active Directory rotations) or in the users array of the pamMachine resource (to model Local rotations). The example from this documentation uses the latter model.
2 – Create the JSON Template
Create a JSON template as described above. For our simple example, we will use this template and name the file pam_import.json:
3 – Import Resources into Keeper
The file pam_import.json will now be imported into Keeper from the Commander CLI. Start your Keeper Commander session. If you haven't set up Commander, follow this setup guide.
Run the import with this command (assumes that the pam_import.json file is in the Commander working directory. It can also have an absolute path).
When the import is complete, the response output in Commander will contain an access token:
Save the value inside the quotes (XXXXX.....) for initializing the Gateway in the next step below.
Note: After the import is complete, the vault will be updated with the resources. If your vault is currently open, it's probably a good idea to click Full Sync or refresh the page.
4 – Start the Gateway
This document doesn't cover the installation of a Keeper Gateway, so let's assume that you have already done this. If you haven't created a Gateway, follow these setup instructions for your preferred method.
In the Gateway's configuration, update the
GATEWAY_CONFIGwith the access token value provided in Step 4 above. For Docker installations, this will be in thedocker-compose.yamlfile. For Windows installations, it will be in theC:\ProgramData\KeeperGateway\config\gateway-config.jsonfileRestart the Gateway
At this point, the Gateway is running and has been associated to all of your imported resources. By default, the import will add all PAM projects to a folder called "PAM Environments".
Import Results
Based on this example, below are some screenshots of the resources created:
Secrets Manager Application
Keeper Gateway
PAM Configuration
PAM Directory (Active Directory Service)
PAM User representing the Domain Admin
PAM Machine Resources (Windows Servers)
PAM Users for each PAM Machine (Local Admins)








Advanced Import Formats
This document demonstrated the basic example of importing a series of Windows servers for the purpose of establishing connections, tunnels and automated password rotation. The configuration of the connections and resources was set up to be simple.
More advanced import options including full JSON template capabilities are documented on this GitHub README Page. This page provides all of the possible settings that can be modified as part of the import process. If you need to re-run this process, it's no big deal - just delete the Folders, PAM Configuration and Gateway from the vault and start over.
If you have any questions on the import process, contact your account team or email [email protected].
Generate the JSON file from CSV
To use a CSV file to generate the JSON file to import, see this section:
Importing with Existing Data
To add content to an existing PAM model instead of creating a new Application, see this section:
Adding PAM Resources to an Existing Model
Related Topics
See the Keeper Commander options for additional PAM automation capabilities.
Last updated
Was this helpful?

