# How to detect the user who is sharing the screen?

**URL:** <https://devforum.zoom.us/t/how-to-detect-the-user-who-is-sharing-the-screen/40027>\
**Category:** macOS\
**Created:** [January 8, 2021, 9:47am UTC](https://devforum.zoom.us/t/how-to-detect-the-user-who-is-sharing-the-screen/40027 "2021-01-08T09:47:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [January 8, 2021, 9:47am UTC](https://devforum.zoom.us/t/how-to-detect-the-user-who-is-sharing-the-screen/40027/1 "2021-01-08T09:47:55Z")

</div>

**Description**  
I need to detect the user who is started sharing the screen  
There is a delegate method for `ZoomSDKASController` instance:  
`func onSharing(_ status: ZoomSDKShareStatus, user userID: UInt32)`  
to detect sharing state, and user who is sharing.

But I don’t have user with such id in `meetingActionController?.getParticipantsList()`

for example `userID` from `onSharing(_,_)` is equal

> 1677\*\*43

and users ids from `getParticipantsList` are equal

> [1678\*\*88, 1677\*\*40]

how can I get `ZoomSDKUserInfo` object of user who is sharing the screen?

Thank you!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 8, 2021, 8:29pm UTC](https://devforum.zoom.us/t/how-to-detect-the-user-who-is-sharing-the-screen/40027/2 "2021-01-08T20:29:14Z")

</div>

Hi @anton.yereshchenko, thanks for the post.

You can look up a user’s info by calling [`meetingActionController?.getUserByUserID(userID)`](https://marketplacefront.zoom.us/sdk/meeting/macos/interface_zoom_s_d_k_meeting_action_controller.html#a44bbb34b9d9f8a197aa3170fc26365bc). Although I am not sure why the ID you are seeing would not match one from the participant list, so let me know if you experience any issues with this method.

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [January 10, 2021, 6:17pm UTC](https://devforum.zoom.us/t/how-to-detect-the-user-who-is-sharing-the-screen/40027/3 "2021-01-10T18:17:54Z")

</div>

@jon.zoom thank you a lot!  
`meetingActionController?.getUserByUserID(userID)` is a solution.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 16, 2021, 4:01am UTC](https://devforum.zoom.us/t/how-to-detect-the-user-who-is-sharing-the-screen/40027/4 "2021-01-16T04:01:41Z")

</div>

Hey @anton.yereshchenko,

Jon is currently out, so I will be taking over this thread until he returns.  
I am glad you have the solution now 🙂

Please let us know if you have any other questions.  
Thanks!  
Michael
