User Search against user_metadata not returning user_metadata fields in results

Hi - the result set of users returned when using the following query does not contain user_metadata

q=user_metadata.customerId:“549”&search_engine=v3

example user result (missing user_metadata):

{
    "email": XXXXXXXX
    "email_verified": true,
    "username": null,
    "phone_number": null,
    "phone_verified": false,
    "user_id": XXXXXXXXXXX,
    "created_at": "2019-04-04T22:00:45.368Z",
    "updated_at": "2019-09-07T14:40:00.734Z",
    "identities": [
        {
            "connection": XXXXXXXXXXXXXX,
            "user_id":XXXXXXXXXXXXX,
            "provider": "auth0",
            "isSocial": false
        }
    ],
    "app_metadata": {},
    "user_metadata": {},
    "picture": XXXXXXXXXXXXXXX,
    "name": XXXXXXXXXXXXXX
    "nickname":XXXXXXXXXXX,
    "multifactor": null,
    "last_ip":XXXXXXXXXXX,
    "last_login": "2019-09-07T14:40:00.733Z",
    "logins_count": 2,
    "blocked": false,
    "given_name": null,
    "family_name": null
}

Why isn’t user_metadata returned in User Search v3?
When I open this user in the Auth0 dashboard I am able to view the user_metadata. (containing customerId:“549”)

Resolved - my C# object wasn’t properly deserializing the user_metadata object from json

1 Like

Glad you were able to figure it out yourself @RP4!

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