identity_provider

organisations roles rights users

Mapping of Organizations, Roles, and Permissions

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

Configuration Parameter

IdentityProvider_Mappings: This configuration parameter allows you to link additional organizations, roles, and permissions to existing organizations, roles, and permissions.

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 being used does not support this. For example, if INUBIT is used as the IdP, rights can be assigned to users via the BPC user management. However, since INUBIT itself cannot store permissions, these are persisted under the base attribute users.

For example, if an IdP is used that provides this functionality (“Keycloak,” etc.) and the base attribute users is created manually, then this attribute is also 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 generated 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"
      ]
    }
  }
}