Mapping of Organizations, Roles, and Permissions

The BPC allows you to assign additional roles and permissions to users, supplementing the permission objects from the external Identity Provider (IdP). This is done through mapping to existing organizations, roles, and permissions. It can be used primarily for assigning BPC-internal application permissions.

Configuration Parameters

The configuration parameter identityProvider_mappings allows you to link additional organizations, roles, and permissions to existing ones. It can be found for every backend connection of the type identity_provider.

Syntax description

The value of the configuration parameter is a JSON object with three to four basic attributes (organisations, roles, rights, users). Each of these follows the same schema. In the underlying object, there is an entry for each organization/role/right (collectively referred to as an “object” below) containing an object that describes the mappings.

The base attribute users is a special case and is used internally by the BPC to store data if the IdP in use does not support it.

For example, if an IdP is used that provides this functionality (“Keycloak,” etc.) and the base attribute users is created manually, then this attribute will also be used. This means that these roles, permissions, and organizations are then used in addition to those stored in the IdP.
Avoid these overlaps, as otherwise the assignments will be difficult to understand.

The following object mappings can be made (any conflicting information will be ignored):

Organization

  • Organization → additional organization

  • Organization → additional roles

  • Organization → additional permissions

Role

  • Role → additional roles

  • Role → additional permissions

Permission

  • Permission → additional permissions

If an object is assigned to another object that has further assignments in this configuration, those assignments are also resolved.

Example

The following example illustrates how this works.

The following users with corresponding objects are created in the Identity Provider:

UserOne UserTwo

Organizations: Org1

Roles: Role1

Permissions: Permission1

Organizations: Org2

Roles: Role2

Permissions: Permission2

The configuration for identityProvider_mappings looks as follows:

{
  "organisations": {
    "Org1": {
      "assignedRoles": [
        "Rolle33"
      ],
      "assignedRights": [
        "Recht0815"
      ],
      "assignedOrganisations": [
        "Org111"
      ]
    },
    "Org111": {
      "assignedRoles": [
      ],
      "assignedRights": [
        "Recht111"
      ],
      "assignedOrganisations": [
      ]
    }
  },
  "roles": {
    "Rolle2": {
      "assignedRoles": [
        "Rolle22"
      ],
      "assignedRights": [
      ]
    }
  },
  "rights": {
    "Recht111": {
      "assignedRights": [
        "Recht4711"
      ]
    }
  }
}

After logging in, the created object looks as follows. The bolded objects were added by the mapping:

UserOne UserTwo

Organizations: Org1, Org111

Roles: Role1, Role33

Permissions: Permission1, Permission111, Permission4711

Organizations: Org2

Roles: Role2, Role22

Permissions: Permission2

Default value

{
  "organisations": {
    "Org1": {
      "assignedRoles": [
        "Role1"
      ],
      "assignedRights": [
        "Right1"
      ],
      "assignedOrganisations": [
        "Org2"
      ]
    },
    "DEFAULT": {
      "assignedRoles": [
        "Role11"
      ],
      "assignedRights": [
        "Right11"
      ],
      "assignedOrganisations": [
        "Org21"
      ]
    }
  },
  "roles": {
    "Role1": {
      "assignedRoles": [
        "Role2"
      ],
      "assignedRights": [
        "Right2"
      ]
    }
  },
  "rights": {
    "Right1": {
      "assignedRights": [
        "Right2"
      ]
    }
  }
}

Keywords: