"User X does not exist or not belong to this account" in Zoom API Test Widget

Description
I am new to the Zoom API. I need to use it on my company’s website. Our employees need to be trained and once it’s complete, they will be issued a Zoom license. We will have processes that will kick off the necessary calls to the Zoom API to create these new users and to add them to a group on the Zoom Account. I’m trying out the API’s to see which endpoints we need exactly with the Test Widget that can be found at each endpoint in the API docs. I am getting errors mostly because I could very well be entering in the wrong data (userId, groupId) and/or it could be something else.

I have created an Oauth app so that I can use the ClientID and Secret to obtain a token to use on the Test Widgets.

Error
The full error message or issue you are running into.

{
“code”: 1001,
“message”: “User XXX-XXX-XXXX not exist or not belong to this account.”
}

Which App Type (OAuth / Chatbot / JWT / Webhook)?
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

No app just yet.

Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user
https://marketplace.zoom.us/docs/api-reference/zoom-api/groups/group

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Request URL / Headers (without credentials) / Body
  2. See error

Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Hey @hyrum, thanks for posting and using Zoom!

What userId or email are you passing in for the GET users endpoint?

Thanks,
Tommy

Thank you for responding @tommy!
I am using the Personal Meeting ID found in your profile page. That’s the closest thing that I could find that could resemble a userId.

Hey @hyrum,

The meeting number is not a user ID.

There are a few ways to get a User ID:

  1. JWT decoding an access_token.

  2. Call the Get Users endpoint.

  3. Pass in the word me as the {userID}

  4. Pass in the users email as the {userID}

Thanks,
Tommy

1 Like

Awesome! Thanks, @tommy!

As for my use case, will JWT work best?

1 Like

Happy to help @hyrum!

It depends on what your trying to do, but JWT is the easiest / fastest way to start calling our APIs! :slight_smile:

Thanks,
Tommy

I explained it in my description but it is easily lost.

Basically we have an on-boarding process which includes issuing licenses and adding them to a Group on the Zoom Account. Right now all, these steps are done manually with upwards of 50+ people at any given. We want to automate this process by hitting your API’s.

Hey @hyrum,

If this application will only be internal, use JWT.

If you intend to share this application with other companies or Zoom users, use OAuth.

It sounds like this will only internal so use JWT! :slight_smile:

Thanks,
Tommy

1 Like

Thank you so much for your help @tommy!

Thanks,
Hyrum

1 Like

You are welcome!

Let us know if you have additional questions! :slight_smile:

Thanks,
Tommy

1 Like