Organizations/roles/user permissions stored in the BPC Core

Some IdPs have limited functionality and, for example, do not offer permissions (Karaf). In this case, the BPC Core stores these mappings in the IdP mapping of the respective IdP backend Connection.

Configuration Parameter

identityProvider_Mappings: This configuration parameter stores the assigned organizations, roles, and permissions for users if this is not supported by the IdP. It can be found in every backend Connection of the type “ identity_provider.”

Syntax description

It is typically a JSON object with 3 basic attributes (organisations, roles, rights). In this case, there is also the attribute users at the same level. This attribute stores users along with their assigned organizations, roles, and permissions.

{
    "organisations": {},
    "roles": {},
    "rights": {},
    "users": {
        "NameDesBenutzers1": {
            "assignedOrganisations": [
                "Organisation1"
            ],
            "assignedRoles": [
                "Rolle1",
                "Rolle2"
            ],
            "assignedRights": [
                "Recht1",
                "Recht2",
                "Recht3"
            ]
        },
        "NameDesBenutzers2": {
            "assignedOrganisations": [
                "Organisation2"
            ],
            "assignedRoles": [
                "Rolle10",
                "Rolle11"
            ],
            "assignedRights": [
                "Recht1",
                "Recht2",
                "Recht3"
            ]
        },
        ...
    }
}

Example

The following example illustrates how this works.

Karaf (JAAS File) was used as the IdP, and the user markus was assigned—via the BPC frontend—the role derheld as well as several permissions.

{
    "organisations": {
        "_organisations": {
            "values": [
                "Virtimo",
                "Bosch"
            ]
        },
        "DEFAULT": {
            "assignedRoles": [],
            "assignedOrganisations": [],
            "assignedRights": []
        }
    },
    "roles": {
        "_roles": {
            "values": [
                "derheld",
                "manager",
                "viewer"
            ]
        },
        "bpcuser": {
            "assignedRoles": [],
            "assignedRights": [
                "loadModule_blank",
                "loadModule_account",
                "loadModule_dashboard"
            ]
        }
    },
    "rights": {
        "_rights": {
            "values": [
                "loadModule_d1",
                "loadModule_d2",
                "loadModule_d3"
            ]
        }
    },
    "users": {
        "markus": {
            "assignedRoles": [
                "derheld"
            ],
            "assignedRights": [
                "loadModule_d1",
                "loadModule_d2",
                "loadModule_d3",
                "loadModule_dummy",
                "loadModule_monitor"
            ]
        }
    }
}

Keywords: