GetCredentialsForPersonIncludingProtectedPerson
Configuration reference for the GetCredentialsForPersonIncludingProtectedPerson valve
The GetCredentialsForPersonIncludingProtectedPerson valve calls the HSA authorization management service contract and creates items from commission records, including protected persons when the upstream service returns them.
Configuration
Section titled “Configuration”Common HSA valve configuration can be found here.
| Name | Description | Default | Mandatory | Expanded |
|---|---|---|---|---|
profile | Optional profile value sent in the HSA request. | "" | ||
id_parameter | Response property used as item ID. | "commissionHsaId" | ||
response_element | SOAP response element that contains commission records converted into items. | "credentialInformation" |
{ "name": "GetCredentialsForPersonIncludingProtectedPerson", "config": { "url": "https://hsa.example.test/authorizationmanagement", "destination": "hsa", "logical_address": "SE165565594230-1000", "person_hsa_id": "${request.personHsaId}", "search_base": "c=SE", "profile": "default" }}Response items
Section titled “Response items”Each commission inside a credentialInformation response record is converted into an item. Person-level fields from credentialInformation, such as personHsaId, givenName, and middleAndSurName, are copied to each commission item.
The default item ID is taken from commissionHsaId. Repeated response values, such as several healthCareProfessionalLicence values or several commissionRight values, are stored as multivalue item properties.
Each commissionRight element is stored as one value in the commissionRight property. The value joins the HSA activity, informationClass, and scope fields with semicolons, for example Läsa;vot;SJF. The valve does not create separate commissionRight_activity, commissionRight_informationClass, or commissionRight_scope properties.
Response-wide federation properties
Section titled “Response-wide federation properties”In addition to the existing per-commission properties, the valve adds these properties to every commission item it creates or updates. They are calculated from the complete HSA response before the commission records are flattened.
| Property | Item value | Description |
|---|---|---|
allEmployeeHsaIds |
Multivalue string property | All nonblank personHsaId values from the response, in service order, including records without commissions. An absent employee ID does not add a value. |
allCommissions |
One string containing a JSON array | All commissions across all response records, in service order, with their complete fields and nested commissionRights arrays. Each commission includes employeeHsaId from its parent record when available. |
The aggregates are identical on every returned commission item. When an existing item is updated, the aggregates are replaced with those from the current response. The valve still creates one item per commission, uses commissionHsaId as the default ID, and preserves the existing multivalue properties described above.
For example, a response with two employee IDs produces allEmployeeHsaIds values employee-1 and employee-2. The following shows the decoded content of the single allCommissions string, rather than a nested item-property array:
[ { "commissionHsaId": "commission-1", "commissionName": "Read records", "employeeHsaId": "employee-1", "commissionRights": [ { "activity": "Read", "informationClass": "vot", "scope": "SJF" } ] }, { "commissionHsaId": "commission-2", "employeeHsaId": "employee-2", "commissionRights": [] }]A commission without rights has an empty commissionRights array. Missing optional fields do not cause a failure or receive invented values. A response without any commissions creates no commission items.
These properties are not automatically released to a SAML service provider or OIDC relying party. After selecting the appropriate commission item in the authentication flow, explicitly map the exported properties for each receiving application. In SAML, map the IDs to separate attribute values and the commissions to one JSON-string attribute value. In OIDC, keep allEmployeeHsaIds as an array and allCommissions as a string.