Hi, there's this endpoint called GET: All Clients, where I can pass an username as a string parameter and it gives me back the user location. Is it possible to instead of passing just one username I pass a list of usernames?
According to the CMX api folks you must use one of the options and possibly programmatically iterate over the list of usernames.
Maybe you could sort and filter the target list before running your query, or combine query with another thing you are doing with the data. Using the API resource to get all clients (option 2) will require pagination since response is limited to thousand at a time.
Here is additional information which sheds light on the location database and usage of parameters such as ipaddress, macaddress, and username. Here it is below.
- CMX gets the USERNAME if the client associates and authenticates to the network while NMSP is up.
- If the authentication occurs before, you may get no USERNAME.
- If CMX has no message from controller that includes the username, it is not in the database and not accessible via the API.