Auth0 Home Blog Docs

App_metadata missing in successful signup request

auth0
api
signup

#1

Hi,

I’m trying to use the management API to create a new user using the “/dbconnections/signup” endpoint. The request is successful and the new user is created, but the app_metadata is missing. The payload I’m sending looks like this:

{
    "app_metadata":{
        "roles":"amazingrole"
    },
    "connection":"Username-Password-Authentication",
    "email":"user@user.com",
    "password":"12345678"
}

The user is created and everything seems to work, but the app_metadata field of the user remains empty. Any idea what I could be doing wrong?


#2

According to the API Explorer for the Authentication API the app_metadata doesn’t look to be a valid parameter for that endpoint