Altinn / altinn-notifications

Altinn platform microservice for handling notifications (mail, sms, etc)
MIT License
2 stars 3 forks source link

Create a new endpoint for personal contact information for an organization in SblBridge #449

Closed SandGrainOne closed 6 months ago

SandGrainOne commented 8 months ago

Description

The personal contact information that users can register for an organisation is currently maintained and kept in Altinn 2. To access the data from Altinn 3 we need to create a new lookup endpoint in SblBridge.

The endpoint needs to use data from Profile. Specifically the unit profile services. It should be possible to retrieve the information for multiple organisations at the time.

Consideration

Specification

SBL InternalUserProfileProxy.GetReporteeNotificationEndPointsForReportee

Tasks

General tasks

Acceptance criteria

acn-sbuad commented 6 months ago

profile/api/units/partycontactpoints in Bridge currently requires the partyId (GUID) for lookup. We could change this to requiring the organisation number to avoid the need of an initial lookup of the partyId before retrieving the contact points.

acn-sbuad commented 6 months ago

Verified in at22. Request body: ["989271156", "989271157", "989271153"] Response body:

[
  {
    "PartyId": "18dffb14-28e6-46f4-be2e-795cd75ece4c",
    "LegacyPartyId": 51206047,
    "OrganisationNumber": "989271156",
    "ContactPoints": [
      {
        "LegacyUserId": 20000000,
        "Email": "",
        "PhoneNumber": "99315829"
      }
    ]
  }
]