Here is the behavior that I am seeing. I create a user with the following request:
"request": {
"url": "https://omitted.us.auth0.com/api/v2/users",
"method": "POST",
"body": "{\"email\":\"auth0-test@omitted.com\",\"email_verified\":true,\"connection\":\"Username-Password-Authentication\",\"verify_email\":false,\"app_metadata\":{\"applications\":{\"omitted\":[\"omitted\"]}},\"password\":\"omitted\",\"given_name\":\"Auth0\",\"family_name\":\"Test\",\"name\":\"Auth0 Test\"}",
"headers": {
"Content-Type": "application/json",
"User-Agent": "Retool/2.0 (+https://docs.tryretool.com/docs/apis)",
"Accept": "application/json",
"Authorization": "---sanitized---",
}
Note that there is \"name\":\"Auth0 Test\"
, and we get a response of:
"response": {
"data": {
"created_at": "2023-08-25T16:13:07.297Z",
"email": "auth0-test@omitted.com",
"email_verified": true,
"family_name": "Test",
"given_name": "Auth0",
"identities": [omitted],
"name": "Auth0 Test",
so I know that Auth0 has the name somewhere.
Now, lets look at Action execution logs. The first line of my action is:
exports.onExecutePostUserRegistration = async (event, api) => {
console.log(`PostUserRegistration for user: ${JSON.stringify(event.user)}`)
and the log for this post-user-registration
event is this:
PostUserRegistration for user:
{
"email": "auth0-test@omitted.com",
"family_name": "Test",
"given_name": "Auth0",
"tenant": "omitted",
"user_id": "auth0|64e8d313843778258e757bc4",
"app_metadata": {
"applications": {
"omitted": [
"omitted"
]
}
},
"user_metadata": {},
"email_verified": true,
"phone_verified": false
}
See here that name
is not present.