PEDM Policy Commands

This page gives information of commands related to perform operations related to PEDM policies

Overview

This section covers all the Keeper Commander commands for managing PEDM 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 PEDM policies with their configuration including policy type, status, controls, and filter settings. Provides an overview of all privilege elevation policies configured in the system.

chevron-rightDotNet CLIhashtag

Command: Coming Soon

chevron-rightDotNet SDKhashtag

Function: Coming Soon

chevron-rightPower Commanderhashtag

Command: Coming Soon

chevron-rightPython CLIhashtag

Command: pedm policy list

Aliases: pedm p l, pedm p list

Flags:

Flag
Description

--format

Output format - json, csv, or table

--output

Save output to specified file

Example:

chevron-rightPython SDKhashtag

Function:

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.

chevron-rightDotNet CLIhashtag

Command: Coming Soon

chevron-rightDotNet SDKhashtag

Function: Coming Soon

chevron-rightPower Commanderhashtag

Command: Coming Soon

chevron-rightPython CLIhashtag

Command: pedm policy add

Aliases: pedm p a, pedm p add

Flags:

Flag
Description

--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:

chevron-rightPython SDKhashtag

Function:

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.

chevron-rightDotNet CLIhashtag

Command: Coming Soon

chevron-rightDotNet SDKhashtag

Function: Coming Soon

chevron-rightPower Commanderhashtag

Command: Coming Soon

chevron-rightPython CLIhashtag

Command: pedm policy edit <policy>

Aliases: pedm p e, pedm p edit

Flags:

Flag
Description

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:

chevron-rightPython SDKhashtag

Function:

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.

chevron-rightDotNet CLIhashtag

Command: Coming Soon

chevron-rightDotNet SDKhashtag

Function: Coming Soon

chevron-rightPower Commanderhashtag

Command: Coming Soon

chevron-rightPython CLIhashtag

Command: pedm policy view <policy>

Aliases: pedm p v, pedm p view

Flags:

Flag
Description

policy

Policy UID or name (required)

--format

Output format - json

--output

Save to file

Example:

chevron-rightPython SDKhashtag

Function:

Policy Delete Command

Remove one or more policies from the system. This command permanently deletes policy configurations and removes them from all collection assignments.

chevron-rightDotNet CLIhashtag

Command: Coming Soon

chevron-rightDotNet SDKhashtag

Function: Coming Soon

chevron-rightPower Commanderhashtag

Command: Coming Soon

chevron-rightPython CLIhashtag

Command: pedm policy delete <policy> [policy...]

Aliases: pedm p delete

Flags:

Flag
Description

policy

Policy UID or name (required, can specify multiple)

Example:

chevron-rightPython SDKhashtag

Function:

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.

chevron-rightDotNet CLIhashtag

Command: Coming Soon

chevron-rightDotNet SDKhashtag

Function: Coming Soon

chevron-rightPower Commanderhashtag

Command: Coming Soon

chevron-rightPython CLIhashtag

Command: pedm policy agents <policy> [policy...]

Aliases: pedm p agents

Flags:

Flag
Description

policy

Policy UID or name (required, can specify multiple)

Example:

chevron-rightPython SDKhashtag

Function:

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.

chevron-rightDotNet CLIhashtag

Command: Coming Soon

chevron-rightDotNet SDKhashtag

Function: Coming Soon

chevron-rightPower Commanderhashtag

Command: Coming Soon

chevron-rightPython CLIhashtag

Command: pedm policy assign <policy> [policy...]

Aliases: pedm p assign

Flags:

Flag
Description

-c, --collection

Collection UID to assign (use * for all agents) - can be repeated

policy

Policy UID or name (required, can specify multiple)

Example:

chevron-rightPython SDKhashtag

Function:

Last updated

Was this helpful?