# Logout event missing user information

**URL:** <https://community.auth0.com/t/logout-event-missing-user-information/66881>\
**Category:** Get Help\
**Tags:** api, auth0\
**Created:** [July 27, 2021, 3:54pm UTC](https://community.auth0.com/t/logout-event-missing-user-information/66881 "2021-07-27T15:54:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ehtved](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Ehtved](https://community.auth0.com/u/Ehtved)\
**Post date:** [July 27, 2021, 3:54pm UTC](https://community.auth0.com/t/logout-event-missing-user-information/66881/1 "2021-07-27T15:54:46Z")

</div>

I have Log Stream with Custom webhooks, It pushes the data to my URL. It sends all the right data for successful login but during logout it is missing user\_id and user\_name. How do I get user\_id and user\_name on logout??

**Allowed Logout URLs**  
`xyz://callback`

**Logout Url:**  
`https://myDomain.auth0.com/v2/logout?client_id={clientId}&returnTo=xyz://callback`

jObjects received from Auth0 on logout:

```auto
{
        "date": "2021-07-27T15:17:51.48Z",
        "type": "slo",
        "connection_id": "",
        "ip": "742.73.943.36",
        "user_agent": "Other 0.0.0 / Other 0.0.0",
        "details": {
            "return_to": "xyz://callback",
            "allowed_logout_url": [
                "xyz://callback"
            ]
        },
        "hostname": "myDomain.auth0.com",
        "user_id": "",
        "user_name": "",
        "log_id": "90020210727151755331772042853374757011368890737096654914",
        "_id": "90020210727151755331772042853374757011368890737096654914",
        "isMobile": false
    }

```

^^Missing user\_id and user\_name. Can anyone suggest how to get user information in logout’s webhook

---

<div class="post-metadata">

**Author:** ![marcus.baker](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcus.baker/32/8586_2.png) [@marcus.baker](https://community.auth0.com/u/marcus.baker)\
**Post date:** [July 27, 2021, 6:36pm UTC](https://community.auth0.com/t/logout-event-missing-user-information/66881/2 "2021-07-27T18:36:44Z")

</div>

Hi!

When the **slo** log type is missing the user\_id this means that Auth0 did not find an active session that matches the session that was sent in the auth0 cookie.

These log entries indicate the user that made the request to /logout was already logged out or their existing session in Auth0 had already timed out / expired.

You can verify this by opening 2 tabs and logging into your application in both tabs.  
Sign out of one tab, and then sign out in the other.

First log out when my session was active

```auto
{
  "date": "2021-07-27T18:22:44.653Z",
  "type": "slo",
  "connection": "Username-Password-Authentication",
  .......
  "hostname": "tenant.us.auth0.com",
  "user_id": "auth0|60.....",
  "user_name": "my.name@mydomain.com",
  ...
 }

```

Second logout when my session was not found

```auto
{
  "date": "2021-07-27T18:23:21.783Z",
  "type": "slo",
  "connection": "Username-Password-Authentication",
  .......
  "hostname": "tenant.us.auth0.com",
  "user_id": "",
  "user_name": "",
  ...
 }

```

Hope this helps!

---

<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:** [August 11, 2021, 6:37pm UTC](https://community.auth0.com/t/logout-event-missing-user-information/66881/3 "2021-08-11T18:37:33Z")

</div>

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