User Search Query support for special characters

Currently, I am trying to fetch the users list via the app_metadata in which I multiple level.
The search seems to works pretty well until when we provide any special character as a key to search.

i.e.
In this case when the value contains special character it works.

https://...../api/v2/users?q=app_metadata.key1.key2:"value"&search_engine=v3

but in the below case when the key2 contains any special character it throws an parsing error

https://...../api/v2/users?q=app_metadata.key1.key2:"value"&search_engine=v3

by special characters I mean =>

*!, @, #, =, $, %, ^, &, , (, ), _, +, {, }, etc.

Is there any possible way this issue can be resolved?

Hi @neer30 ,

Welcome to the Auth0 Community!

I tested this with the get user endpoint, with the below app_metadata attributes having special characters such as + and & in the key or value.

{
"user_field":{
  "user_field2":"ab+d",
  "user+field3":"ab+e"
},
  "user&field1":"ab+c"
}

And the following queries return the results. I did not see any error.

app_metadata.user_field.user_field2:"ab+d"

app_metadata.user_field.user+field3:"ab+e"

app_metadata.user&field1:"ab+c"

Could you please provide additional details, such as your query and app_metadata attributes?

Thanks!

Hi @lihua.zhang

Please consider this example.

{
  "user_field":{
    "user_field2==":"ab+d",
    "user+field3!=":"ab+e"
  }
}

The respective query would be like,

app_metadata.user_field.user_field2==:"ab+d"

Hi @neer30,

Thank you for providing additional details.

with app_metadata,

{
  "user_field":{
    "user_field2==":"ab+d",
    "user+field3!=":"ab+e"
  }
}

please try below queries to get the results.

app_metadata.user_field.user_field2\=\=:"ab+d"
app_metadata.user_field.user+field3\!\=:"ab+e"

Hope this helps!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.