Skip to content

The Alma Users API can return a lower number of results than reported #7

@danmichaelo

Description

@danmichaelo

curl -X GET --header 'Accept: application/json; charset=utf-8' --header 'Authorization: apikey {key}' 'https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users?limit=5&q=ALL~linena@uio.no' | jq '.'

gives "total_record_count": 5, but only 3 records are returned. Anonymized response:

{
  "user": [
    {
      "primary_id": "li",
      "first_name": "Li",
      "last_name": "Aker",
      "gender": {
        "value": "FEMALE",
        "desc": "Female"
      },
      "password": "",
      "status": {
        "value": "ACTIVE",
        "desc": "Active"
      },
      "requests": null,
      "loans": null,
      "fees": null,
      "link": "https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users/li"
    },
    {
      "primary_id": "n003548402",
      "first_name": "Stein",
      "last_name": "Gal",
      "gender": {
        "value": "",
        "desc": ""
      },
      "password": "",
      "status": {
        "value": "ACTIVE",
        "desc": "Active"
      },
      "requests": null,
      "loans": null,
      "fees": null,
      "link": "https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users/n003548402"
    },
    {
      "primary_id": "N003548424",
      "first_name": "Sol",
      "last_name": "Storm",
      "gender": {
        "value": "",
        "desc": ""
      },
      "password": "",
      "status": {
        "value": "ACTIVE",
        "desc": "Active"
      },
      "requests": null,
      "loans": null,
      "fees": null,
      "link": "https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users/N003548424"
    }
  ],
  "total_record_count": 5
}

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