Skip to content

rbac-map.json

Harbor OnboardRole: adminDescribes Onboard 0.58.0

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.

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).
"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.

"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 to retrieveAccountsDefault. It must always be set explicitly in a CSV.
  • Compare-PAMSafePermissions -SafeName <name> (or -All), or RBAC Drift in the console, compares each safe’s members and permissions with the map.
  • Repair-PAMSafePermissions brings 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.