Version 3.28.11
Let’s say there’s an API3 user who does not have the admin role.
If you do search_users(email: "foo@example.com") the result should probably be an empty array.
Instead, you get the current user. Example (in this case, user 74 is the API3 user):
[1] pry(#<Looker::Api>)> client.search_users(email: 'foo@example.com').first
=> {:id=>74,
:first_name=>"",
:last_name=>"",
:avatar_url=>
"https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?s=156&d=mm",
:url=>"https://localhost:19999/api/3.0/users/74",
:can=>{}}
So . . . I would say have this call return an empty array (unless it’s a match to the API user) or document this behavior.
I stumbled into this using the wrong credentials and the results were unexpected.