Skip to content

Fix: EPM policy can not be created without name and mandatory fields.#1950

Merged
sali-ks merged 1 commit intoreleasefrom
epm-policy-creation-fix
Apr 16, 2026
Merged

Fix: EPM policy can not be created without name and mandatory fields.#1950
sali-ks merged 1 commit intoreleasefrom
epm-policy-creation-fix

Conversation

@sshrushanth-ks
Copy link
Copy Markdown
Contributor

Summary

Two bug fixes ensuring the Commander CLI matches Admin Console behaviour when creating EPM policies — one preventing silent creation of unnamed policies, and one enforcing mandatory collection filters for certain policy types.

Changes

  • Made --policy-name a required argument in PedmPolicyAddCommand to prevent policies from being silently created with an empty name.
  • For policies of type elevation, file_access, or command, creating a policy now requires at least one user, machine, and application collection via --user-filter, --machine-filter, and --app-filter respectively, replicating Admin Console validation. LeastPrivilege policies remain unrestricted.

@sshrushanth-ks sshrushanth-ks self-assigned this Apr 13, 2026
@sshrushanth-ks sshrushanth-ks marked this pull request as ready for review April 13, 2026 09:46
@sshrushanth-ks sshrushanth-ks force-pushed the epm-policy-creation-fix branch from a41b5a8 to 0246e3c Compare April 14, 2026 14:05
…#1940)

* Made --policy-name a required argument in PedmPolicyAddCommand to prevent policies from being silently created with an empty name.

* Replicated admin console behavior: adding a policy of type elevation, file_access, or command now requires at least one user, machine, and application collection via --user-filter, --machine-filter, and --app-filter. LeastPrivilege policies remain unrestricted.
@sshrushanth-ks sshrushanth-ks force-pushed the epm-policy-creation-fix branch from 0246e3c to 53e6ac0 Compare April 15, 2026 08:50
@sali-ks sali-ks merged commit 28d6a9c into release Apr 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants