SuccessLogout log event in Auth0 missing values for user_id and user_name

Hi Auth0 support team,

We are working on integrating with Auth0 trail account before we obtain a enterprise account. As part of the integration, we are streaming the login/logout events to a webhook to store these events in our database for audit logging purposes.

We observed for the SuccessLogout event, when this event is streamed, we did not see the values for user_id and user_name in the payload for the log event.

Is this is a bug in Auth0 or is there a setting that I need to enable inorder to receive the user_id and user_name valiues in the playload for SuccessLogout log event? Whereas we see these values in the payload for Success Login and other log events.

Sample payload for the SuccessLogout log event:

{
“date”: “2024-03-25T21:02:22.054Z”,
“type”: “slo”,
“connection_id”: “”,
“client_name”: “XXX-WEB”,
“ip”: “x.x.x.x”,
“user_agent”: “Apache-HttpClient 4.5.13 / Other 0.0.0”,
“details”: {
“allowed_logout_url”: [
“http://localhost:4200”,
“http://localhost:4200/”
]
},
“hostname”: “xxx-auth0-int.eu.auth0.com”,
“user_id”: “”,
“user_name”: “”,
“$event_schema”: {
“version”: “1.0.0”
},
“log_id”: “90020240325210222127837000000000000001223372039982956385”,
“_id”: “90020240325210222127837000000000000001223372039982956385”,
“isMobile”: false,
“id”: “90020240325210222127837000000000000001223372039982956385”,
“description”: “User successfully logged out”
}

1 Like

Hi @nsd.prasad,

Welcome to the Auth0 Community!

I have just checked whether a logout event contains the user_id and username fields, and indeed it does.

I am unsure why your logs do not include the user_id and username in the log event.

Could you clarify what kind of connection the user used to authenticate?

And are those the only properties returned from the log out event? I noticed that the connection property was omitted by comparing it to mine.

Hi @rueben.tiow we use the custom database solution where the custom database login script will call our APIs to validate the user provided credentials against our own database.

We are seeing the user_id and username values coming in all other events except for the event “slo”.

We do have these elements in the SuccessLogout event payload. But the values are coming as null.

Let me know if you need any additional details.

Hi @nsd.prasad,

Thanks for the information.

It looks like we have a knowledge solution addressing your observations. Please refer to it below:

I hope this helps!

Thanks,
Rueben

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