# SuccessLogout log event in Auth0 missing values for user\_id and user\_name

**URL:** <https://community.auth0.com/t/successlogout-log-event-in-auth0-missing-values-for-user-id-and-user-name/130570>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [March 26, 2024, 10:23pm UTC](https://community.auth0.com/t/successlogout-log-event-in-auth0-missing-values-for-user-id-and-user-name/130570 "2024-03-26T22:23:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsd.prasad](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nsd.prasad/32/50030_2.png) [@nsd.prasad](https://community.auth0.com/u/nsd.prasad)\
**Post date:** [March 26, 2024, 10:23pm UTC](https://community.auth0.com/t/successlogout-log-event-in-auth0-missing-values-for-user-id-and-user-name/130570/1 "2024-03-26T22:23:59Z")

</div>

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)”,  
“[http://localhost:4200/](http://localhost:4200/)”  
]  
},  
“hostname”: “[xxx-auth0-int.eu.auth0.com](http://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”  
}

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 26, 2024, 11:51pm UTC](https://community.auth0.com/t/successlogout-log-event-in-auth0-missing-values-for-user-id-and-user-name/130570/3 "2024-03-26T23:51:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nsd.prasad](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nsd.prasad/32/50030_2.png) [@nsd.prasad](https://community.auth0.com/u/nsd.prasad)\
**Post date:** [March 29, 2024, 8:46pm UTC](https://community.auth0.com/t/successlogout-log-event-in-auth0-missing-values-for-user-id-and-user-name/130570/4 "2024-03-29T20:46:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 4, 2024, 1:51am UTC](https://community.auth0.com/t/successlogout-log-event-in-auth0-missing-values-for-user-id-and-user-name/130570/5 "2024-04-04T01:51:34Z")

</div>

Hi @nsd.prasad,

Thanks for the information.

It looks like we have a knowledge solution addressing your observations. Please refer to it below:  
[https://community.auth0.com/t/tenant-log-for-successful-logout-has-no-user-information/119487](https://community.auth0.com/t/tenant-log-for-successful-logout-has-no-user-information/119487)

I hope this helps!

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 18, 2024, 1:51am UTC](https://community.auth0.com/t/successlogout-log-event-in-auth0-missing-values-for-user-id-and-user-name/130570/6 "2024-04-18T01:51:34Z")

</div>

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