Inconsistent response when requesting user details for an existing user

Description
I have noticed inconsistend results when sending a GET request to /users/{userId}. The exact same code (golang) that runs on my local machine, using the same api and secret keys, gets a successful response whereas if I deploy the program on a remote server it gets a 404 error for the same user.

Error
I am getting a {“code”:1001,“message”:“User does not exist: vsiii.eramall@ermes.com.cy.”} when requesting user details on a remote server, for a user that exists. This is inconsistent behaviour as I am amble to successfully receive the user details when running the exact same program from my laptop.

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

Which Endpoint/s?
GET /users/{userId}

Additional context
Response when running program on server:
2020/12/14 18:14:44 Request URL: https_://api.zoom.us/v2/users/vsiii.eramall@ermes.com.cy
2020/12/14 18:14:44 URL Parameters:
2020/12/14 18:14:44 Body Parameters: null
2020/12/14 18:14:44 JWT Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDc5Njc0ODQsImlzcyI6IlFHVGg4a1dDUmp1NkJLbW10Z1IzUFEifQ.ASDxPmdwwR1i6vWpoH0FzLs6aE62rOGumQNoYxLrbrQ
2020/12/14 18:14:44 Response Body: {“code”:1001,“message”:“User does not exist: vsiii.eramall@ermes.com.cy.”}
time=“2020-12-14T18:14:44+02:00” level=error msg=“Zoom API error 1001: “User does not exist: vsiii.eramall@ermes.com.cy.”” method=EditMeetingDetails package=handlers.meeting.zoom

Response when running program on my laptop:
2020/12/14 18:34:04 Request URL: https_://api.zoom.us/v2/users/vsiii.eramall@ermes.com.cy
2020/12/14 18:34:04 URL Parameters:
2020/12/14 18:34:04 Body Parameters: null
2020/12/14 18:34:04 JWT Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDc5Njg2NDQsImlzcyI6InNNcUlwSWFnU0VtN0hibDdaaTIzVVEifQ.IeLPtcDFkfqCil-RGtdWBFhyDiaPd_QxDvFUUxbUcnI
2020/12/14 18:34:04 Response Body: {“id”:“KUMRJf1FRlOZ3omy1oT7Kg”,“first_name”:“Era”,“last_name”:“Mall iii”,“email”:“vsiii.eramall@ermes.com.cy”,“type”:1,“role_name”:“Owner”,“pmi”:9181252404,“use_pmi”:false,“personal_meeting_url”:“https://zoom.us/j/9181252404?pwd=TFFtbHJxczhKNTRqbU8zdWtPazdPZz09",“timezone”:“Europe/Athens”,“verified”:1,“dept”:"",“created_at”:“2020-12-14T10:48:40Z”,“last_login_time”:“2020-12-14T10:48:40Z”,“host_key”:“021007”,“cms_user_id”:"",“jid”:“kumrjf1frloz3omy1ot7kg@xmpp.zoom.us”,“group_ids”:[],“im_group_ids”:[],“account_id”:“AKg7wxu1TiWPOslyB-hOIw”,“language”:“en-US”,“phone_country”:"",“phone_number”:"",“status”:“active”,“job_title”:"",“location”:"”}

(I have intentionally modified the https:// prefix because I couldn’t create post with more than 2 links)

Thank you for your help

Hi @vsiii,

Thanks for reaching out about this—strange. Can you try passing the user ID in place of the email address and see if that makes a difference? Additionally, can you try regenerating the JWT key and ensure it belongs to the same account as the user?

Thanks,
Will

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