FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    How to get event.info.deviceDescription in events webhook (ex user.login.success)?

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    1
    1
    6
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rabah.laouadi
      last edited by

      Hello everyone,

      We’re trying to retrieve the event.info.deviceDescription field from the user.login.success webhook event, but it doesn’t seem to appear in the payload.

      Here’s an example of what we receive:

      "event": {
        "applicationId": "af28e0b2-124b-4c98-b8b5-30322e98de79",
        "authenticationType": "PASSWORD",
        "connectorId": "e3306678-a53a-4964-9040-1c96f36dda72",
        "createInstant": 1759824184881,
        "id": "c3e5c82a-91cc-451c-9bcc-104803d29f87",
        "info": {
          "deviceName": "macOS Chrome",
          "deviceType": "BROWSER",
          "ipAddress": "192.168.65.1",
          "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
        },
        "ipAddress": "192.168.65.1",
        "linkedObjectId": "69384417-206b-4c21-a4e7-22f8c93ed516",
        "tenantId": "68530993-d5d0-43c5-9278-115524701723",
        "type": "user.login.success",
        "user": {
                "active": true,
                "connectorId": "e3306678-a53a-4964-9040-1c96f36dda72",
      
                "data": {
                  ...
                },
                "email": "XXXX",
                "id": "69384417-206b-4c21-a4e7-22f8c93ed516",
                "identities": [
                  {
                    "insertInstant": 1759295385386,
                    "lastLoginInstant": 1759761531077,
                    "lastUpdateInstant": 1759295385386,
                    "primary": true,
                    "type": "email",
                    "value": "XXXXX",
                    "verified": false,
                    "verifiedReason": "Trusted"
                  },
                  {
                    "insertInstant": 1759295385386,
                    "lastLoginInstant": 1759824184881,
                    "lastUpdateInstant": 1759295385386,
                    "primary": true,
                    "type": "phoneNumber",
                    "value": "XXXXXX",
                    "verified": false,
                    "verifiedReason": "Trusted"
                  }
                ],
                "insertInstant": 1759295385386,
                "lastLoginInstant": 1759824184881,
                "lastUpdateInstant": 1759295385386,
                "memberships": [],
                "passwordChangeRequired": false,
                "passwordLastUpdateInstant": 1759295385391,
                "phoneNumber": "XXXXXX",
                "preferredLanguages": [],
                "registrations": [
                  {
                    "applicationId": "af28e0b2-124b-4c98-b8b5-30322e98de79",
                    "data": {},
                    "id": "d57496f5-98de-4e36-9aa0-01b7b56fca50",
                    "insertInstant": 1759295385398,
                    "lastLoginInstant": 1759824184881,
                    "lastUpdateInstant": 1759295385398,
                    "preferredLanguages": [],
                    "roles": [],
                    "tokens": {},
                    "usernameStatus": "ACTIVE",
                    "verified": true,
                    "verifiedInstant": 1759295385398
                  }
                ],
                "tenantId": "68530993-d5d0-43c5-9278-115524701723",
                "twoFactor": {
                  "methods": [
                    {
                      "id": "SGN8",
                      "lastUsed": true,
                      "method": "sms",
                      "mobilePhone": "XXXXXX"
                    }
                  ],
                  "recoveryCodes": []
                },
                "usernameStatus": "ACTIVE",
                "verified": true,
                "verifiedInstant": 1759295385386
              }
            }
      

      I tried setting metaData.device.description in the authorize request, like so:

      GET /oauth2/authorize?...&metaData.device.description=MyDescription
      

      But the description still doesn’t appear in the event payload.

      Am I missing a configuration step, or is deviceDescription not included in this webhook by default?

      Thanks in advance for any help!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post