Skip to content

Fix RBAC drift

Harbor OnboardRole: operatorDescribes Onboard 0.55.0

Members and permissions change in CyberArk outside Harbor: someone adds a contractor group, widens a role, or removes an auditor. This recipe finds that drift, repairs it to the standard, and makes sure you hear about the next one.

You need: the operator role and a vault session. The vault identity needs View Safe Members to see members and Manage Safe Members to fix them.

  1. Open Audit & Lifecycle → RBAC Drift (Drift). The scan of the register safes starts on its own.
  2. Sort out what is not compliant: Compliant is Fail, with counts of Missing, Unexpected and Permission drift. Use Search… or Export CSV for a long list.
  3. Select Details on a safe. Compare Expected by the standard with Actually on the safe (per the API), and read the Permission drift table.
  4. If the safe shows 0 members, stop: that is a read problem (the vault identity cannot see members), not drift. View live members (API) confirms it.
  • Missing members and wrong permissions are always repaired to the standard.
  • Unexpected members are only removed if you say so. Find out who added them and why first; if they belong there, the standard may need to change instead (see Settings, Preview impact).
  • If the standard itself is wrong for the safe, fix the standard, not the safe.
  1. In the detail, select Fix drift.
  2. Tick Also remove unexpected members (destructive) only if they must go.
  3. Select Preview fix (dry run) and check every planned Action. Members listed under Unresolvable (create these first) must be created in the directory or Identity first.
  4. Select Apply fix for real. When members are removed, the dialog names them; confirm with Remove and fix.
  5. The page rescans. The safe shows Pass.
  • Schedule the compliance scan on the Dashboard (Scheduled scans, admin): the webhook is alerted only when a finding is new. See Compliance snapshots and time travel.
  • Check Rogue safe detection on the Drift page now and then for safes made outside Harbor.
Terminal window
Compare-PAMSafePermissions -All | Where-Object { -not $_.InCompliance }
Repair-PAMSafePermissions -SafeName <safe> -DryRun
Repair-PAMSafePermissions -SafeName <safe> # add missing, correct permissions
Repair-PAMSafePermissions -SafeName <safe> -RemoveUnexpected # also remove unexpected members

See Compare-PAMSafePermissions and Repair-PAMSafePermissions.

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.