# User created through API "custCreate" asks for a password when starting a meeting and joins it instead

**URL:** <https://devforum.zoom.us/t/user-created-through-api-custcreate-asks-for-a-password-when-starting-a-meeting-and-joins-it-instead/42887>\
**Category:** API and Webhooks\
**Created:** [February 9, 2021, 8:04am UTC](https://devforum.zoom.us/t/user-created-through-api-custcreate-asks-for-a-password-when-starting-a-meeting-and-joins-it-instead/42887 "2021-02-09T08:04:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyndi](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Cyndi](https://devforum.zoom.us/u/Cyndi)\
**Post date:** [February 9, 2021, 8:04am UTC](https://devforum.zoom.us/t/user-created-through-api-custcreate-asks-for-a-password-when-starting-a-meeting-and-joins-it-instead/42887/1 "2021-02-09T08:04:08Z")

</div>

**Description**  
We, here at Cyndi Technologies, bought 50 licenses initially to go with Zoom services which started from 15th of Jan. And it’s been more than 20 days since then and the service still hasn’t been set up and working.

The issue is we wanted the process of allocation of licenses completely dynamic that any user with privileges on our platform can host a meeting without ever bothering about the Zoom Login and a host license will then be dynamically allocated to that user only for that particular meeting.

For which I created a way:

1. Generate a JWT Token dynamically
2. Create a “custCreate” user with Create User API using the JWT Token
3. Generate ZAK Token with JWT Token
4. Pass JWT Token, ZAK Token and PMI to the Frontend SDK to start a meeting.
5. After the meeting, delete the user to free the allocated license.

Everything is working absolutely fine, except one thing, that even when using `StartMeetingParamsWithoutLogin()`, it actually joins the meeting and asks for a password which was never set, nor returned by the API request.

My Code to start a meeting:

```
    val zoomSDK = ZoomSDK.getInstance()
        if (!zoomSDK.isInitialized) {
            initializeZoom()
        }
        val meetingService: MeetingService = zoomSDK.meetingService
        val opts = StartMeetingOptions()
        opts.custom_meeting_id = startMeetingModel.className
        opts.no_meeting_end_message = true

        val params = StartMeetingParamsWithoutLogin()
        val email = Hawk.get<String>(common.userEmail)
        if (!email.isNullOrBlank()) {
            params.displayName = Hawk.get(common.userName)
            params.userId = email
            params.userType = MeetingService.USER_TYPE_API_USER
            params.zoomAccessToken = startMeetingModel.zakToken
            params.meetingNo = startMeetingModel.meetingNo
            meetingService.startMeetingWithParams(context, params, opts)
        }

```

The above code works fine for the owner account and starts the meeting, but it doesn’t work for other host licenses allocated to a “custCreate” user.

**Error**  
Cannot host a meeting with ZAK Token and StartMeetingParamsWithoutLogin(), asks for password and then joins the waiting room even when the user is the actual host.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth and dynamically generated JWT to get ZAK Token from the backend.

**Which Endpoint/s?**

> **[Create Users - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate)**
>
> A Zoom account can have one or more users. Use this API to add a new user to your account.
> Prerequisites:
> 
> Pro or higher plan
> Scopes: user:write:admin u...

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

1. Create a “custCreate” user with the above linked API.
2. Start the meeting with the aforementioned code.

**Screenshots (If applicable)**

 ![Screenshot_2021-02-09-13-28-49-58_346880b532b8d78aa9da318757ed0be8](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/b/7b7fa8254737a0716957ed0cc65f17ca1f8061b2.jpeg)

**Additional context**  
We were promised by the Sales person that we will be able to do what we wanted, dynamic allocation. But, how were never told even after mailing them. I believe our query will be solved as soon as possible, it is already costing us and our relations with zoom.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [February 10, 2021, 2:45pm UTC](https://devforum.zoom.us/t/user-created-through-api-custcreate-asks-for-a-password-when-starting-a-meeting-and-joins-it-instead/42887/2 "2021-02-10T14:45:10Z")

</div>

Hi @Cyndi,

Thanks for reaching out about this.

To clarify, how are you generating your ZAK token for this user? Are you using this endpoint or something else?

> **[Get a User Token - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usertoken)**
>
> Retrieve a user's token. This token is used for starting meetings with the Client SDK.
> Scopes: user:read:admin user:read
> 
> Rate Limit Label: Light
> If a ...

Please let me know—thanks!  
Will

---

<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:** [March 13, 2021, 12:45am UTC](https://devforum.zoom.us/t/user-created-through-api-custcreate-asks-for-a-password-when-starting-a-meeting-and-joins-it-instead/42887/3 "2021-03-13T00:45:27Z")

</div>

Closed on March 13, 2021, 12:45am UTC

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