grokability / jamf2snipe

Import and sync assets from a JAMFPro instance to Snipe-IT asset management.
MIT License
114 stars 55 forks source link

snipeit user search - alphabetize result #41

Closed HinchK closed 4 years ago

HinchK commented 4 years ago

Greetings @ParadoxGuitarist! I work with @snipe, and we received an issue that I'd like to 'shoot across your bow'.

Currently the search-users api endpoint returns users by their "created_at" columns. Unfortunately, if I have users

ana@snipeitapp.com
dana@snipeitapp.com

In our case dana@snipeitapp.com was created before ana - the search endpoint will return dana@snipeitapp.com on an unsorted search for ana@snipeitapp.com.

I've updated the parameters in this PR - let me know what you think sir!

(And deep thanks from myself and all of us @ snipeitapp.com <3)