Fix: search_users returns a dict and not a list
Hi, I found an issue with the current return type from search_users. It is returning a dict and not a list. Additionally pages should be "page" as this refers to the page number to return and not the number of pages. This has been confirmed for Grafana v11.1.4. Example api_call result: {'totalCount': 4, 'users': [], 'page': 5, 'perPage': 1} Cheers, Matt.
@roman1900 Thank you for the contribution. I think you're right about the parameter, but I'm not quite sure about the return value, as the documentation still references a list. I will try this out and build an integration test case.
I have adjusted the search endpoint and added a new function to differentiate between the paginated search function and the normal search function. I have created a new PR to add this function as a few things were missed in their PR. I have also done an integration test with my Grafana v11.4 environment and can confirm that the feature works as documented. I will close your PR now.