KEPM Policy Commands
This page gives information of commands related to perform operations related to KEPM policies
Overview
This section covers all the Keeper Commander commands for managing KEPM privilege elevation policies. Policies define privilege elevation rules with filters and controls that determine when and how users can elevate privileges. These commands allow administrators to create, view, edit, assign, and delete policies with various filters including user, machine, application, date, time, and day restrictions.
This section supports the following commands:
Usage
pedm policy command [--options] OR pedm p command [--options]
Alias: p
Policy List Command
View all KEPM policies with their configuration including policy type, status, controls, and filter settings. Provides an overview of all privilege elevation policies configured in the system.
Python CLI
Command: pedm policy list
Aliases: pedm p l, pedm p list
Flags:
--format
Output format - json, csv, or table
--output
Save output to specified file
Example:
Policy Add Command
Create a new privilege elevation policy with specified filters and controls. Policies can include user, machine, and application filters, along with date, time, and day restrictions. Controls determine what actions are required or allowed during privilege elevation.
DotNet CLI
Command: epm-policy add
Parameters:
--uid
New policy UID. If omitted, one is generated by the SDK.
--plain
Plain policy JSON string (template/admin data).
--plain-file
Path to file containing plain policy JSON.
--data
Policy JSON data to encrypt.
--data-file
Path to file containing policy JSON data to encrypt.
Example:
Power Commander
Command: Add-KeeperEpmPolicy
Alias: kepm-policy-add
Parameters:
-PolicyName
Display name for the policy.
-PolicyType
Policy type: PrivilegeElevation, FileAccess, CommandLine, LeastPrivilege.
-Status
Policy status: enforce, monitor, monitor_and_notify, off.
-Control
One or more controls: APPROVAL, JUSTIFY, MFA.
-UserFilter
User scope — collection UID(s) or * for all users.
-MachineFilter
Machine scope — collection UID(s).
-AppFilter
Application scope — collection UID(s).
-RiskLevel
Risk level (0–100).
-NotificationMessage
Notification message displayed to end users.
-NotificationRequiresAcknowledge
Whether users must acknowledge the notification.
-DayFilter
Allowed days: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
-DateFilter
Date range(s) in YYYY-MM-DD:YYYY-MM-DD format.
-TimeFilter
Time range(s) in 24-hour HH-HH format, e.g. 09-17.
Examples:
Python CLI
Command: pedm policy add
Aliases: pedm p a, pedm p add
Flags:
--policy-type
Policy type (choices: elevation, file_access, command, least_privilege)
--policy-name
Name for the policy
--control
Policy controls (choices: allow, deny, audit, notify, mfa, justify, approval) - can be repeated
--status
Policy status (choices: enforce, monitor, monitor_and_notify)
--enable
Enable or disable policy (choices: on, off)
--user-filter
User collection UID or * for all users - can be repeated
--machine-filter
Machine collection UID - can be repeated
--app-filter
Application collection UID - can be repeated
--date-filter
Date range in ISO format (YYYY-MM-DD:YYYY-MM-DD) - can be repeated
--time-filter
Time range in 24-hour format (HH:MM-HH:MM) - can be repeated
--day-filter
Day of week filter - can be repeated
--risk-level
Policy risk level (0-100)
Example:
Policy Edit Command
Modify an existing policy's configuration including name, controls, filters, and status. This command allows administrators to update policy settings without recreating the policy.
DotNet CLI
Command: epm-policy update
Parameters:
(positional)
Policy UID or name (case-insensitive).
--plain
Plain policy JSON string (template/admin data).
--plain-file
Path to file containing plain policy JSON.
--data
Policy JSON data to encrypt.
--data-file
Path to file containing policy JSON data to encrypt.
Examples:
Power Commander
Command: Update-KeeperEpmPolicy
Alias: kepm-policy-edit
Parameters:
-PolicyUidOrName
Policy UID or policy display name (case-insensitive match on name).
-PolicyName
New policy name.
-Status
Policy status: enforce, monitor, monitor_and_notify, off.
-Control
Updated controls: APPROVAL, JUSTIFY, MFA.
-UserFilter
User scope — collection UID(s) or * for all users.
-MachineFilter
Machine scope — collection UID(s).
-AppFilter
Application scope — collection UID(s).
-RiskLevel
Risk level (0–100).
-NotificationMessage
Notification message displayed to end users.
-NotificationRequiresAcknowledge
Whether users must acknowledge the notification.
-DayFilter
Allowed days of the week.
-DateFilter
Date range(s) in YYYY-MM-DD:YYYY-MM-DD format.
-TimeFilter
Time range(s) in 24-hour HH-HH format.
Examples:
Python CLI
Command: pedm policy edit <policy>
Aliases: pedm p e, pedm p edit
Flags:
policy
Policy UID (required)
--policy-name
New policy name
--control
Policy controls (choices: allow, deny, audit, notify, mfa, justify, approval) - can be repeated
--status
Policy status (choices: enforce, monitor, monitor_and_notify)
--enable
Enable or disable policy (choices: on, off)
--user-filter
User collection UID or * - can be repeated
--machine-filter
Machine collection UID - can be repeated
--app-filter
Application collection UID - can be repeated
--date-filter
Date range (YYYY-MM-DD:YYYY-MM-DD) - can be repeated
--time-filter
Time range (HH:MM-HH:MM) - can be repeated
--day-filter
Day of week - can be repeated
--risk-level
Risk level (0-100)
Example:
Policy View Command
Display the complete JSON configuration of a policy. This command shows all policy details including filters, controls, rules, and metadata in JSON format.
DotNet CLI
Command: epm-policy view
Parameters:
(positional)
Policy UID or name (case-insensitive).
Example:
Python CLI
Command: pedm policy view <policy>
Aliases: pedm p v, pedm p view
Flags:
policy
Policy UID or name (required)
--format
Output format - json
--output
Save to file
Example:
Policy Delete Command
Remove one or more policies from the system. This command permanently deletes policy configurations and removes them from all collection assignments.
DotNet CLI
Command: epm-policy remove
Parameters:
(positional)
Policy UID or name (case-insensitive).
Examples:
Power Commander
Command: Remove-KeeperEpmPolicy
Aliases: kepm-policy-delete, kepm-policy-remove
Parameters:
-PolicyUidOrName
Policy UID or policy display name (case-insensitive match on name).
-Force
Skip the confirmation prompt.
Examples:
Python CLI
Command: pedm policy delete <policy> [policy...]
Aliases: pedm p delete
Flags:
policy
Policy UID or name (required, can specify multiple)
Example:
Policy Agents Command
View which agents are affected by specific policies. This command shows all agents that are assigned to the specified policies through collection assignments.
DotNet CLI
Command: epm-policy agents
Parameters:
(positional)
Policy UID(s) or name(s), space or comma separated.
Examples:
Power Commander
Command: Get-KeeperEpmPolicyAgent
Alias: kepm-policy-agents
Parameters:
-PolicyUidOrNames
One or more policy UIDs or policy names. Accepts pipeline input.
Example:
Python CLI
Command: pedm policy agents <policy> [policy...]
Aliases: pedm p agents
Flags:
policy
Policy UID or name (required, can specify multiple)
Example:
Policy Assign Command
Assign collections to policies to determine which resources the policy applies to. Collections can include agents, users, machines, or applications. Use "*" to assign to all agents.
DotNet CLI
Command: epm-policy assign
Parameters:
(positional)
Policy UID(s) or name(s), space or comma separated.
--collection
Collection UID(s) to assign. Use * or all for the all-agents collection.
Examples:
Power Commander
Command: Add-KeeperEpmPolicyCollection
Alias: kepm-policy-assign
Parameters:
-PolicyUidOrNames
One or more policy UIDs or policy names. Accepts pipeline input.
-CollectionUid
One or more collection UIDs. Use * or all for the all-agents collection.
Examples:
Last updated

