# ZoomSDKEmbedded Join userId not correct

**URL:** <https://devforum.zoom.us/t/zoomsdkembedded-join-userid-not-correct/91644>\
**Category:** Video SDK\
**Created:** [July 12, 2023, 2:56am UTC](https://devforum.zoom.us/t/zoomsdkembedded-join-userid-not-correct/91644 "2023-07-12T02:56:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex.kumar](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alex.kumar](https://devforum.zoom.us/u/alex.kumar)\
**Post date:** [July 12, 2023, 2:56am UTC](https://devforum.zoom.us/t/zoomsdkembedded-join-userid-not-correct/91644/1 "2023-07-12T02:56:11Z")

</div>

Getting this error. What should is the correct userID? Code below:

const client = ZoomMtgEmbedded.createClient();  
StartVideo(client);  
teleVisitService.Get().then((sig) =\>  
{ console.log(sig);  
client.join({  
sdkKey: process.env.SDK\_KEY,  
signature: sig,  
meetingNumber: ‘3456236’,  
password: ‘464’,  
userName: ‘???’  
})})  
return () =\> { client.endMeeting(); }

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [July 12, 2023, 4:00pm UTC](https://devforum.zoom.us/t/zoomsdkembedded-join-userid-not-correct/91644/2 "2023-07-12T16:00:04Z")

</div>

Hi @alex.kumar ,

Thank you for your question! Did you assign a value to userIdentity/userName in your payload when generating your signature? If so, does it match the one used here in the join function?

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![alex.kumar](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alex.kumar](https://devforum.zoom.us/u/alex.kumar)\
**Post date:** [July 12, 2023, 6:38pm UTC](https://devforum.zoom.us/t/zoomsdkembedded-join-userid-not-correct/91644/3 "2023-07-12T18:38:14Z")

</div>

Yes, as folllows:

" const oPayload = {  
sdkKey: ‘XXXXXXXXXXXXXX’,  
mn: ‘2750514837’,  
role: 1,  
iat: iat,  
exp: exp,  
tokenExp: exp,  
userName: “AlexKumar”  
}

const client = ZoomMtgEmbedded.createClient();  
StartVideo(client);  
teleVisitService.Get().then((sig) =\>  
{ console.log(sig);  
client.join({  
sdkKey: process.env.SDK\_KEY,  
signature: sig,  
meetingNumber: ‘3456236’,  
password: ‘464’,  
userName: ‘AlexKumar’  
})})  
return () =\> { client.endMeeting(); }

```
const sHeader = JSON.stringify(oHeader)
const sPayload = JSON.stringify(oPayload)
const sdkJWT = KJUR.jws.JWS.sign('HS256', sHeader, sPayload, 'XXXXXXXXXXXXXXXXXXXXXX')
return sdkJWT

```

---

<div class="post-metadata">

**Author:** ![alex.kumar](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alex.kumar](https://devforum.zoom.us/u/alex.kumar)\
**Post date:** [July 12, 2023, 11:04pm UTC](https://devforum.zoom.us/t/zoomsdkembedded-join-userid-not-correct/91644/4 "2023-07-12T23:04:42Z")

</div>

Hi Rehma: Any other suggestions?

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [July 17, 2023, 1:46pm UTC](https://devforum.zoom.us/t/zoomsdkembedded-join-userid-not-correct/91644/5 "2023-07-17T13:46:12Z")

</div>

Hi @alex.kumar ,

If you try to join the meeting using the parameters defined [here](https://developers.zoom.us/docs/video-sdk/web/sessions/) for client.join(), are you still getting the same error? Your sdk Key is not a required parameter when joining a session.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![alex.kumar](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alex.kumar](https://devforum.zoom.us/u/alex.kumar)\
**Post date:** [July 18, 2023, 5:27pm UTC](https://devforum.zoom.us/t/zoomsdkembedded-join-userid-not-correct/91644/6 "2023-07-18T17:27:31Z")

</div>

Hi Rehma -

I looked at the documentation some more and added additional steps:

- Oath server-to-server app to access Token
- APP API to get zak token required to start WEB SDK - component view meeting.  
I can successfully join. However, I do not see any video. I can see a video of someone who joins using the Zoon client, but they can not see me either.

I still see userId error above.

How do I enable Video as a host on the component view? I would love to talk to someone live, I am willing to pay reasonable fee for consultation. Implementing ComponentView per the link below:

> **[ZOOM Web SDK Components](https://marketplacefront.zoom.us/sdk/meeting/web/components/index.html)**
>
> Documentation for ZOOM Web SDK Components

In react environment, when the app joins the meeting as host with the zak token (as stated in the documentation), I get the following widow - without a video or tool bar at the bottom.

May be there is bug in the SDK? Also see this in developer tools:

zoomus-websdk-embedded.umd.min.js:27749 Uncaught (in promise)

1. {type: ‘INVALID\_PARAMETERS’, reason: ‘userId is not correct’}
2. reason: “userId is not correct”
3. type: “INVALID\_PARAMETERS”
4. [[Prototype]]: Object

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/0/103f8321a99025657242205388cbe70e8648335e.png)

---

<div class="post-metadata">

**Author:** ![jimmy.usu2006](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jimmy.usu2006/32/54129_2.png) [@jimmy.usu2006](https://devforum.zoom.us/u/jimmy.usu2006)\
**Post date:** [November 30, 2023, 8:15am UTC](https://devforum.zoom.us/t/zoomsdkembedded-join-userid-not-correct/91644/7 "2023-11-30T08:15:40Z")

</div>

Any update with this issue ? The meeting is starting and infact we are able to communicate properly. But it just keeps on showing in the developer console. I am not sure what are the consequences of this message ? Does it lead to frozen frame of zoom client ? Has anyone observed ?
