Skip to main content

People

The API distinguishes natural people from legal entities, and customer-side people from your own staff. Five types you should know about: User, Administrator (with BoardMember and ExternalAdministrator implementations), Employee, and LegalEntity.

User​

A natural person who appears in the system through an administrator role at one of your bank's customer organizations. Users are deduplicated globally — the same individual on two organizations is one User with two administrator relationships.

Key fields

  • id, firstname, lastname, email, phoneNumber.
  • addressEntity: Address — current address (the legacy flat address, postalCode, city, country strings on User are deprecated).
  • legalEntity: LegalEntity — KYC details (SSN, tax residencies, citizenships, e-id verifications, legal addresses).
  • marketingConsent, politicallyExposedPerson.
  • currentPhotoLegitimation, currentSocialSecurityCard — current identity-document submissions.
  • administrators: [Administrator!]! — administrator relationships this user has.

The users* queries surface only users with active administrator memberships in your bank's organizations — historical or other-bank memberships aren't visible.

Administrator (interface)​

The relationship between a User and an Organization. The interface has two concrete implementations:

  • BoardMember — adds boardMemberRoles: [BoardMemberRole] (chairman, cashier, secretary, …) and isAuthorizedSignatory.
  • ExternalAdministrator — adds externalAdministratorRoles: [ExternalAdministratorRole] (CEO, accountant, …).

Both expose attorneys: [Attorney] (powers of attorney) and allowEBoksCommunicationFromBank.

You usually traverse Administrator from Organization.administrators rather than querying it directly.

Attorneys at a bank with dynamic attorneys​

attorneys hold the fixed rights from before your bank moved to dynamic attorneys. They are not updated after the move: they stay as they stood then, and every grant since appears only in the dynamic attorney fields.

With legacy attorney changes enabled by unioo support, an association administrator's attorneys are instead built from the procuras and cards the administrator holds now, by the same rules as a bank report's attorneyChanges. The stored rows are not returned.

  • There is one entry per bank account the administrator holds a procura or a card on. A procura over every account gives an entry on each of the organization's bank accounts. A deleted account has none.
  • rights is the legacy right set on the procura setting held on the account, or NONE when the administrator holds only a card there. When the administrator holds more than one procura on the account, it is the strongest of their legacy rights, as on a bank report.
  • creditCard is true when the administrator holds a card on the account.
  • onlineBanking and personalAttendance are always false, because dynamic attorneys have no equivalent.
  • id is stable across requests, but there is no attorney behind it to look up.

A procura whose setting has no legacy right is not guessed. Its bank accounts are left out, and the response carries an error with extensions.code of LEGACY_ATTORNEY_RIGHTS_UNMAPPED naming the setting. A company's people keep their stored attorneys, and so does BankAccount.attorneys.

Dynamic attorneys​

Banks with the dynamic-attorneys module grant attorneys from their own configurable settings instead of the fixed Attorney rights. Two fields on Administrator carry them, both gated by hasDynamicAttorneysModule:

  • dynamicAttorneyCards: [DynamicAttorneyCard] — a bank card granted for one specific bank account. Carries bankAttorneySettingsCard (the card setting it was granted from, with its title and descriptions), the bankAccount, and the unsigned file / signed signedFile blobs.
  • dynamicAttorneyProcuras: [DynamicAttorneyProcura] — a procura granted either for one specific bankAccount or, when bankAccount is null, for every account of the organization. Carries bankAttorneySettingsProcura.

Both fields return only the grants issued from your bank's dynamic attorney settings — an administrator shared with another bank never exposes that bank's grants to you.

BankAccount exposes the account-bound side of the same data as dynamicAttorneyCards and dynamicAttorneyProcuras — procuras valid for all accounts appear only on the administrator. See Querying organizations.

Changes to dynamic attorneys are delivered through bank reports — see Dynamic attorney changes.

Employee​

A staff member at your own bank. Created via createEmployee.

Key fields

  • id, externalId, firstName, lastName, email.
  • roles: [BankEmployeeRole] — assigned permissions (e.g. CAN_REJECT_BANK_PACKAGES, CAN_EDIT_EMPLOYEES).
  • creationDate, lastLoginTime.

employees excludes support employees and soft-deleted accounts automatically.

LegalEntity​

KYC-related data attached to a User. Holds the user's social security number, tax residencies, citizenships, e-id verifications, and legal addresses. Modeled separately because the data is sensitive and loaded on demand.

Key fields

  • ssn (encrypted at rest), legalName, countryOfBirth, cityOrLocationOfBirth.
  • taxResidencies: [TaxResidency], citizenships: [Citizenship].
  • verifications: [LegalEntityVerification]! — historic e-id verifications. currentVerification is the active one.
  • legalAddresses: [LegalAddress]!. currentLegalAddress is the active one.
  • isEidVerified.

SSN handling​

Social security numbers are encrypted at rest. The usersBySsn query encrypts the input server-side before comparing — pass the plaintext SSN as you have it, never pre-encrypted.

Where to query / mutate​