rbac-map.json
Config/rbac-map.json decides who becomes a member of each new safe and with which
permissions. The shipped values are rendered on
Safe naming standard / RBAC map.
Edit it in the console: Standards (validated, with Preview impact, a backup and the change history). Only admins can save.
Fields
Section titled “Fields”| Field | Meaning |
|---|---|
globalGroups |
Groups added to every safe. Shipped: vaultAdmin and safeManager, each with a name and permissions. |
includeGlobalGroupsByDefault |
Add the global groups to every safe. Shipped: true. A safe type can override it with includeGlobalGroups. |
retrieveAccountsDefault |
The default for permissions marked "OPT" (the safe’s RetrieveAccounts choice). Shipped: false. |
defaultMemberType |
Group or Role: used only when the member check is skipped (-SkipGroupCheck). Otherwise Harbor finds out itself. |
groupSearchIn |
Optional: the directory to search for group members (applies to groups, never to Identity roles). |
groupNaming |
How persona group names are built (see below). |
safeTypes |
Persona permissions per safe type (see below). |
Group naming
Section titled “Group naming”"groupNaming": { "pattern": "SAFE_GROUP_{SafeName}_{Role}", "roleTokens": { "endUser": "USER", "safeOwner": "OWNER", "approver": "APPROVER", "auditor": "AUDITOR" }}Tokens: {SafeName} (the whole name), {Org}, {App}, {Tech}, {Sub},
{Act}, {Env} and {Role} (from roleTokens). Change the one pattern to match
your directory’s naming standard, and every persona group name follows.
Each derived name must already exist, as a vault group or a CyberArk Identity role. Before it creates a safe, Harbor looks each one up, first as a vault group, then as an Identity role (which joins the safe as a role member), and stops with a list of every name it could not find. Reading Identity roles needs that right for the service account.
Permissions per safe type
Section titled “Permissions per safe type”"safeTypes": { "shared-managed": { "roles": { "endUser": { "useAccounts": true, "retrieveAccounts": "OPT", "listAccounts": true }, "safeOwner": { "listAccounts": true, "viewAuditLog": true, "viewSafeMembers": true } } }, "personal": { "noGroupRoles": true, "includeGlobalGroups": true, "ownerPermissions": { "useAccounts": true, "retrieveAccounts": true, "listAccounts": true } }}| Field | Meaning |
|---|---|
roles |
Per persona (endUser, safeOwner, approver, auditor), the permissions it gets. |
noGroupRoles |
No persona groups: the safe’s owner (a user) is the member, with ownerPermissions. |
includeGlobalGroups |
Overrides includeGlobalGroupsByDefault for this type. |
- Permission keys are CyberArk’s REST v2 safe-member property names
(
useAccounts,retrieveAccounts,listAccounts,viewAuditLog, …), so the map is applied exactly as written. - List only what is granted: an absent key is not granted.
"OPT"follows the safe’s RetrieveAccounts choice (the CSV column, or the console checkbox), which defaults toretrieveAccountsDefault. It must always be set explicitly in a CSV.
Checking real safes against the map
Section titled “Checking real safes against the map”Compare-PAMSafePermissions -SafeName <name>(or-All), or RBAC Drift in the console, compares each safe’s members and permissions with the map.Repair-PAMSafePermissionsbrings a safe back: it adds missing members, corrects permissions, and removes unexpected members only with-RemoveUnexpected.- After changing the map, Preview impact (or
Test-PAMConfigImpact) shows which existing safes would gain, lose or change members.
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
