Skip to content

Ignore users without primary id #6

@danmichaelo

Description

@danmichaelo

Today's surprise: The Alma users API can return users without any identifiers! 😲 Within the normal Alma GUI these are shown as "contacts".

Another weird thing is that the primary_id field is not something like null, but a not very machine-friendly string: "no primary id (123456789023)". Here's a full (anonymized) response example:

    {
      "primary_id": "no primary id (123456789023)",
      "first_name": "Hans",
      "last_name": "Jonas",
      "gender": {
        "value": "",
        "desc": ""
      },
      "status": {
        "value": "ACTIVE",
        "desc": "Active"
      },
      "requests": null,
      "loans": null,
      "fees": null,
      "link": "https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users/-"
    }

Also notice that the link field is also not null, but an invalid URL that can not be dereferenced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions