Users of the Kelvin API should be able to search users using all UCS@school attributes (name, firstname, birthday etc) and mapped UDM properties (employeeType, e-mail, uidNumber etc). "mapped UDM properties" are those in the UCS@school import configuration: ------------------------------------------------------------------------ $ cat /var/lib/ucs-school-import/configs/user_import.json { "configuration_checks": ["defaults", "mapped_udm_properties"], "mapped_udm_properties": ["title", "description", "employeeType", "uidNumber", "gidNumber"] } ------------------------------------------------------------------------ The following query returns all users whos * name starts with "demo" * are not disabled * uidNumber is 2010 $ curl -q -k -X GET 'https://FQDN/kelvin/api/v1/users/?name=demo*&disabled=false&uidNumber=2010' -H "accept: application/json" -H "Authorization: Bearer ..."
[feature/kelvin] f03f2684e Bug #50675: search users using all attributes and mapped properties [feature/kelvin] f2feac22b Bug #50675: always use ImportUser [feature/kelvin] 49e818bc5 Bug #50675: handle udm_properties attribute [feature/kelvin] 8d607a1b0 Bug #50675: cleanup [feature/kelvin] be90cc92e Bug #50675: lower logging level [feature/kelvin] 409734753 Bug #50675: in Python 3 filter() returns a <filter object> (an iterator), which is not evaluated by if or repr [feature/kelvin] f9941842f Bug #50675: test search
[feature/kelvin] b8fe65348 Bug #50675: test create, search and modify multi-value field
[feature/kelvin a7a0205b6] Bug #50675: fix school_class representation
Looks all good for me. Ran tests, compared with BB manually. Searched for attributes, mapped_udm.
A Kelvin API app with the changes in this bug has been published.