# User ID downcased in \`user.presence\_status\_updated\`

**URL:** <https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228>\
**Category:** API and Webhooks\
**Created:** [February 2, 2021, 12:11am UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228 "2021-02-02T00:11:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ryan/32/37137_2.png) [@ryan](https://devforum.zoom.us/u/ryan)\
**Post date:** [February 2, 2021, 12:11am UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228/1 "2021-02-02T00:11:49Z")

</div>

The `user.presence_status_updated` `payload.object.id` field is the “User ID of the user whose presence status was updated” per the documentation. It seems that this field is always downcased.

For example, in a `meeting.started` webhook:

```auto
{
    "event": "meeting.started",
    "payload": {
        "account_id": "rNsp1ezDTG6z9B2nXyHSsw",
        "object": {
            "duration": 1,
            "start_time": "2021-02-01T22:39:21Z",
            "timezone": "",
            "topic": "XXX",
            "id": "XXXXX",
            "type": 1,
            "uuid": "Lv/FNM+CTrOPoTpflCNWRg==",
            "host_id": "eGAHtja4QHqdRL5zwCbJrg"
        }
    },
    "event_ts": 1612219161157
}

```

you can see the `host_id` field contains uppercase characters.

However, in a `user.presence_status_updated` payload:

```auto
{
    "event": "user.presence_status_updated",
    "payload": {
        "account_id": "rNsp1ezDTG6z9B2nXyHSsw",
        "object": {
            "date_time": "2021-02-01T22:41:29Z",
            "email": "XXX",
            "id": "egahtja4qhqdrl5zwcbjrg",
            "presence_status": "Available"
        }
    },
    "event_ts": 1612219289765
}

```

As you can see, the ids match except for case.

1. Is this a bug that we could expect to be resolved?
2. Can we safely treat user ids as case insensitive or is `user.presence_status_updated` effectively unusable until resolved?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 2, 2021, 8:34pm UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228/2 "2021-02-02T20:34:28Z")

</div>

Hey @ryan,

Good catch! I don’t think this is expected so I reached out to our engineering team to see if this can be resolved. In the meantime, as you mentioned, you can lowercase the values when performing equality checks. (ZOOM-243501)

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![ryan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ryan/32/37137_2.png) [@ryan](https://devforum.zoom.us/u/ryan)\
**Post date:** [February 2, 2021, 11:34pm UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228/3 "2021-02-02T23:34:35Z")

</div>

Thanks for the update. So just to confirm, zoom user IDs are case insensitive?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 2, 2021, 11:45pm UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228/4 "2021-02-02T23:45:23Z")

</div>

Hey @ryan,

The API is not case sensitive. For instance, you can call the [Get a User API](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user) with a lowercase user id. So I expect that the rest of the system has the same behavior but this is part of what our engineering team will confirm for us.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 4, 2021, 10:22pm UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228/5 "2021-02-04T22:22:11Z")

</div>

Hey @ryan,

As an update, our team got back to me and informed me that this is a known issue slated to be fixed in a future release.

In the meantime, it’s safe to use/store the IDs in lower case.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![rcasimina](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rcasimina/32/18626_2.png) [@rcasimina](https://devforum.zoom.us/u/rcasimina)\
**Post date:** [February 9, 2021, 12:26am UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228/6 "2021-02-09T00:26:16Z")

</div>

Hi @MaxM

I’m going to post a new thread about below, but I saw this thread, so I just replied here.  
As you can see below, it seems the User API is case-sensitive since I can’t get User Information if I use the lower case user id. Could you kindly again if it is really the case now?

Thanks and regards,

**Description**  
The user id on user.presence\_status\_updated Webhook Event seems wrong.

**Error**  
N/A

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth and Webhook

**Which Endpoint/s?**  
[https://api.zoom.us/v2/users/{userId}](https://api.zoom.us/v2/users/%7BuserId%7D)

**How To Reproduce (If applicable)**  
Pre-condition: Should have an installed app that can receive Webhook event  
Steps to reproduce the behavior:

1. Login to zoom account

**Screenshots (If applicable)**  
N/A

**Additional context**  
I received below user.presence\_status\_updated event:  
{  
“payload”: {  
“account\_id”: “2omUw\_NjQBSqHpH8pCl4HQ”  
“object”: {  
“presence\_status”: “Available”  
“date\_time: 2021-01-25T07:29:41Z”  
“id”: “u595x15qrxuxwchn1upzhw”  
“email”: “[my@example.com](mailto:my@example.com)”  
}  
}  
conv\_timestamp: 2021-01-25T07:29:41Z  
event\_ts: 1611559781868  
event: user.presence\_status\_updated  
}

Then I used the payload.object.id, to get that User information via Users API. But I wasn’t able to get the user information. But if I use user id “U595x15qRXuxwcHN1uPZHw” instead of “u595x15qrxuxwchn1upzhw”, I was able to get the user information from the Users API. It seems that the User API is case-sensitive. Is it possible to update the payload.object.id of the user.presence\_status\_updated event to correct one?

Thanks,

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 9, 2021, 7:51pm UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228/7 "2021-02-09T19:51:32Z")

</div>

Hey @rcasimina,

Thank you for reaching out to the Zoom Developer Forum. I tested this again with a JWT app and a different user but I saw the same behavior. I was able to use the [List Users API](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/users) to get a user’s Id. Then lowercased the UUID and used it for the [Get a User API](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user).

Again, I saw that this worked without an issue. It’s possible you’re encountering an edge case we’ll need to address.

Are you able to share the response that you’re getting when making a call to the [Get a User API](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user) with a lowercase Id?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![rcasimina](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rcasimina/32/18626_2.png) [@rcasimina](https://devforum.zoom.us/u/rcasimina)\
**Post date:** [March 3, 2021, 6:34am UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228/8 "2021-03-03T06:34:17Z")

</div>

Hi @MaxM ,

Thank for the reply.  
I’ve checked this issue again and I was able to get the User information even if the user id is in lower case. I don’t know what is the cause but since it is working as design, you may close this thread.

Thanks and regards,  
Rodel

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [March 3, 2021, 9:25pm UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228/9 "2021-03-03T21:25:14Z")

</div>

Thanks for letting us know, @rcasimina! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 3, 2021, 7:26am UTC](https://devforum.zoom.us/t/user-id-downcased-in-user-presence-status-updated/42228/10 "2021-04-03T07:26:09Z")

</div>

Closed on April 3, 2021, 7:26am UTC

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