# User and phone webhooks: User ID has differing case

**URL:** <https://devforum.zoom.us/t/user-and-phone-webhooks-user-id-has-differing-case/69986>\
**Category:** API and Webhooks\
**Tags:** phone, webhooks\
**Created:** [June 6, 2022, 12:31am UTC](https://devforum.zoom.us/t/user-and-phone-webhooks-user-id-has-differing-case/69986 "2022-06-06T00:31:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![callum.katene](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/callum.katene/32/31881_2.png) [@callum.katene](https://devforum.zoom.us/u/callum.katene)\
**Post date:** [June 6, 2022, 12:31am UTC](https://devforum.zoom.us/t/user-and-phone-webhooks-user-id-has-differing-case/69986/1 "2022-06-06T00:31:06Z")

</div>

**Description**  
I am building an app to maintain a given user’s state across their Zoom tools - presence, meetings and phone. I note that the user’s user ID is in both **phone** events and **user** events - except that the case is different.

I need a single hash that contains the user’s current state: both presence and phone status. I think the user’s ID is ideal for the hash key. But why do we see inconsistent case across these event types? If I use case-insensitive keys do I run the risk of the key not being unique?

See the _payload.user\_id_ element below:

```auto
{"event":"phone.caller_ended","payload":{"account_id":"XXXXXXXX","object":{"call_id":"7105913388545705085","caller":{"extension_id":"XXXXXXXX","extension_number":779,"phone_number":"779","user_id":"CsNUP4DxQam2ojhcDzgGSA","timezone":"Pacific/Auckland","device_type":"PolycomVVX-VVX_250-UA/6.4.2.3176","extension_type":"user"},"callee":{"extension_number":999,"phone_number":"999","extension_type":"commonAreaPhone"},"ringing_start_time":"2022-06-06T00:13:08Z","call_end_time":"2022-06-06T00:13:16Z","handup_result":"Call Cancel"}},"event_ts":1654474396870}

```

Compare this to the _payload.object.id_ field below:

```auto
 {"event":"user.presence_status_updated","payload":{"account_id":"XXXXXXXX","object":{"date_time":"2022-06-06T00:13:57Z","email":"call@xxxxxx.com","id":"csnup4dxqam2ojhcdzggsa","presence_status":"Away"}},"event_ts":1654474437772}

```

 ![Screen Shot 2022-06-06 at 12.31.46 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/a/7a1972c51885c8bf698cd58bf3798f7d7a105438.png)

As you can see, the values are the same but the case is different. Why is this?

**Error?**  
No error is encountered.

**API Endpoint/s?**  
Webhooks

**How To Reproduce**  
Create a webhooks app that includes both user and phone events. From a phone associated with a user, make a call and capture the webhook phone event. For that same user, change the user’s status in the Zoom app to **Busy**. Capture the webhook user event. Compare the IDs as described above.

**Additional context**  
None.

---

<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:** [July 6, 2022, 10:31am UTC](https://devforum.zoom.us/t/user-and-phone-webhooks-user-id-has-differing-case/69986/2 "2022-07-06T10:31:49Z")

</div>

Closed on July 6, 2022, 10:31am UTC

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