I'm trying to use the SystemusersApi.systemusers_list() method to get a list of all users in a system.
I have managed to use the filter parameter successfully, with a string like the following: system_users_api.systemusers_list(content_type='application/json', accept='application/json', filter='firstname:David'). This successfully produces the expected behavior of returning all users with the first name of David.
The issue is: I came up with that string value for the filter parameter purely by trial-and-error. Also, I can't get it to work filtering multiple fields. I've tried several JSON-based solutions and nothing seems to work. I've seen examples of what to put in the filter parameter in the general (non-Python specific) API documentation (see this ), but I can't draw a connection to the filter parameter in the Python API. The Python API documentation pretty consistently describes the filter parameter (unhelpfully) as simply a "A filter to apply to the query."
I'm trying to use the
SystemusersApi.systemusers_list()method to get a list of all users in a system.I have managed to use the
filterparameter successfully, with a string like the following:system_users_api.systemusers_list(content_type='application/json', accept='application/json', filter='firstname:David'). This successfully produces the expected behavior of returning all users with the first name of David.The issue is: I came up with that string value for the
filterparameter purely by trial-and-error. Also, I can't get it to work filtering multiple fields. I've tried several JSON-based solutions and nothing seems to work. I've seen examples of what to put in thefilterparameter in the general (non-Python specific) API documentation (see this ), but I can't draw a connection to thefilterparameter in the Python API. The Python API documentation pretty consistently describes thefilterparameter (unhelpfully) as simply a "A filter to apply to the query."