# adjustRenderedVideoPosition method giving: userId is not correct

**URL:** <https://devforum.zoom.us/t/adjustrenderedvideoposition-method-giving-userid-is-not-correct/69406>\
**Category:** Web\
**Created:** [May 23, 2022, 2:22pm UTC](https://devforum.zoom.us/t/adjustrenderedvideoposition-method-giving-userid-is-not-correct/69406 "2022-05-23T14:22:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoaib](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shoaib/32/28580_2.png) [@shoaib](https://devforum.zoom.us/u/shoaib)\
**Post date:** [May 23, 2022, 2:22pm UTC](https://devforum.zoom.us/t/adjustrenderedvideoposition-method-giving-userid-is-not-correct/69406/1 "2022-05-23T14:22:49Z")

</div>

Hey @tommy ,  
`adjustRenderedVideoPosition` method is throwing **{type: ‘INVALID\_PARAMETERS’, reason: ‘userId is not correct’}** sometimes while that user is there in `client.getAllUser()`.

Can you please tell what causing this error and how can we prevent this error from getting thrown?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 24, 2022, 6:36pm UTC](https://devforum.zoom.us/t/adjustrenderedvideoposition-method-giving-userid-is-not-correct/69406/2 "2022-05-24T18:36:27Z")

</div>

Hey @shoaib ,

Did that user have their video turned on?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![shoaib](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shoaib/32/28580_2.png) [@shoaib](https://devforum.zoom.us/u/shoaib)\
**Post date:** [May 24, 2022, 7:54pm UTC](https://devforum.zoom.us/t/adjustrenderedvideoposition-method-giving-userid-is-not-correct/69406/3 "2022-05-24T19:54:29Z")

</div>

Oh okay, then that must be the reason, I think adding a check for `user.bVideoOn` before calling `adjustRenderedVideoPosition` method should do the work.  
Thanks @tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 24, 2022, 9:39pm UTC](https://devforum.zoom.us/t/adjustrenderedvideoposition-method-giving-userid-is-not-correct/69406/4 "2022-05-24T21:39:27Z")

</div>

Happy to help @shoaib ! 🙂

-Tommy

---

<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:** [June 24, 2022, 7:40am UTC](https://devforum.zoom.us/t/adjustrenderedvideoposition-method-giving-userid-is-not-correct/69406/5 "2022-06-24T07:40:25Z")

</div>

Closed on June 24, 2022, 7:40am UTC

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