php-alma-client icon indicating copy to clipboard operation
php-alma-client copied to clipboard

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

Open danmichaelo opened this issue 6 years ago • 0 comments

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&[email protected]' | 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
}

danmichaelo avatar Jun 19 '18 20:06 danmichaelo