Using this template helps us debug your issues more effectively
Description
I need a new development: the zoom user will login from a web form using his email and password on my school web page. Then when he has authenticated he can list only his past meetings. So I need to get his zoom userid information when he logged in.
Error
I couldnât try anything, I have to use php scripts.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
I installed oath2 and jwt applications on marketplace. But donât know which one I must use on this scenario.
Which Endpoint/s?
User Authentication
How To Reproduce (If applicable)
Steps to reproduce the behavior:
Request URL / Headers (without credentials) / Body
See error
Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.
Additional context
I explained my request in description top. I hope it is enough clear .
Will the end-user exist under your Zoom account, or will they be using their own external Zoom accounts? If itâs the former, you can use JWT, as these credentials can authorize requests on behalf of any user under the account. You can then use the JWT token to call the List Users API:
If itâs the latter, this will require OAuth, and end users will need to authorize your OAuth App. Once they do so, you can retrieve an access_token to authenticate API requests on their behalf following this flow:
Hello,
Thank you for your response. The end users are the users under my enterprise account.
I can list the all users array using "list user API " with JWT authentication. But how any of these users can sign in from my web page? How can i query their email and password match with the zoom.us account ?
Good question! Iâll note that when using JWT, you will only be able to query users under your account. To query users outside of your account, youâll want to publish an OAuth app on our marketplace.
If you wanted the users to sign in from your web page you have a couple of options. The easiest is that you store their access_token and refresh_token in your DB behind your authentication system. When they log in to your site, you make sure that you refresh the access_token if needed and then you can make requests on their behalf.
Hi Max,
I understand your suggestion. Then is there a way to get the userâs default access_token to write to the my query DB?
We can get acces_token for account owner using â/oauth/tokenâ and CLIENT_ID and CLIENT_SECRET. But I dont know how to get access_token of a user in my enterprise account. When i click a userâs name in the zoom account users list page, the user profile url like âhttps://zoom.us/user/zPR9ShXmQFW_JuvCDWd5Ww/profileâ
Oh yes, i changed some letters of the string because of security. It was just an example for better explaining
Meanwhile, I took some steps to get auth code and token of different users using your documents.
Thank you.
Hello, i can get access token of the signed user using autherization code. Then i get userid using that access token. My goal is, getting the past meeting list of that zoom user. But when i call V2/me/meetings API in the same page, it always give âinvalid access tokenâ error ?
May i use same AT for two API request in one hour ?
Is there any other method of getting userid of the signed user together with access token ?
Yes you should be able to use the same access_token for multiple requests within an hour. Can you try passing email or user ID in the request URL in place of âmeâ?