Forum Discussion

jeffshurtliff's avatar
5 years ago

Unable to use the 'email' field in a WHERE clause when using LiQL against the users table

I am trying to figure out how I can retrieve the User ID or login (i.e. username) for a user when I only have their email address using LiQL, but for some reason I am getting an "Invalid query syntax...
  • him_varma's avatar
    5 years ago

    Hi jeffshurtliff 

    It seems that the where clause constraint you are trying to use is not available.

    However as an alternate you can use the v1 API call to fetch user from email. Please find below:

    [yourcommunityurl]/restapi/vc/search/users?q=email:[email id]

    Please let me know if this was helpful.

    Thanks