Retrieves a paginated list of groups associated with the application. Optional query parameters allow sorting of the results.