how to search users by attributes using this gem ? #14

Closed
cs3b opened this Issue May 25, 2012 · 5 comments

Comments

Projects
None yet
4 participants

cs3b commented May 25, 2012

No description provided.

what kind of attributes/searches are you trying to do? Searching current account owners or more larger lists like searching users of the domain in general by attribute?

cs3b commented May 25, 2012

e.g.

connection.users.find(:email => 'some.user@email.com') 

return all users

See closed issue #10 - #10

query = client.users.search(:query => "test@example.com")

I don't know if you can specify to only search a specific attribute.

Contributor

steved commented May 25, 2012

Specific attributes are not allowed to be searched. However, emails, usernames, and external_ids are searched depending on how the query is constructed.

http://developer.zendesk.com/documentation/rest_api/users.html#search-users

cs3b commented May 31, 2012

thanks

@cs3b cs3b closed this May 31, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment