Fix RBAC drift
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.
Find the drift
Section titled “Find the drift”- Open Audit & Lifecycle → RBAC Drift (Drift). The scan of the register safes starts on its own.
- 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.
- Select Details on a safe. Compare Expected by the standard with Actually on the safe (per the API), and read the Permission drift table.
- 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.
Decide
Section titled “Decide”- 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.
Repair
Section titled “Repair”- In the detail, select Fix drift.
- Tick Also remove unexpected members (destructive) only if they must go.
- 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.
- Select Apply fix for real. When members are removed, the dialog names them; confirm with Remove and fix.
- The page rescans. The safe shows Pass.
Keep it fixed
Section titled “Keep it fixed”- 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.
From PowerShell
Section titled “From PowerShell”Compare-PAMSafePermissions -All | Where-Object { -not $_.InCompliance }Repair-PAMSafePermissions -SafeName <safe> -DryRunRepair-PAMSafePermissions -SafeName <safe> # add missing, correct permissionsRepair-PAMSafePermissions -SafeName <safe> -RemoveUnexpected # also remove unexpected membersSee 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.
