The user.presence_status_updatedpayload.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.
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)
The API is not case sensitive. For instance, you can call the Get a User API 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.
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
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?
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 to get a user’s Id. Then lowercased the UUID and used it for the Get a User API.
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 with a lowercase Id?
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.