# ZoomSDKError 4 on UI functions

**URL:** <https://devforum.zoom.us/t/zoomsdkerror-4-on-ui-functions/38576>\
**Category:** macOS\
**Created:** [December 16, 2020, 7:37pm UTC](https://devforum.zoom.us/t/zoomsdkerror-4-on-ui-functions/38576 "2020-12-16T19:37:46Z")\
**Posts on this page:** 1\
**Showing post:** 26

<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 14, 2021, 9:07pm UTC](https://devforum.zoom.us/t/zoomsdkerror-4-on-ui-functions/38576/26 "2021-01-14T21:07:17Z")

</div>

Hey @j_a_z_z,

To get the userID’s of the users who are actively sharing, you can call - [getShareSourceList](https://marketplacefront.zoom.us/sdk/meeting/macos/interface_zoom_s_d_k_a_s_controller.html#a0af630b5112df43e1d5a9978788370d4) from the ZoomSDKASController.

To be alerted that someone started sharing you can use - [onSharingStatus:User:](https://marketplacefront.zoom.us/sdk/meeting/macos/protocol_zoom_s_d_k_a_s_controller_delegate_01-p.html#ad4d13d7ca248098d4e5ec340704eb7bc)

To assign your object as a delegate you would call:

> ZoomSDKMeetingService\* meetingService = [[ZoomSDK sharedSDK] getMeetingService];  
> if(meetingService)  
> {  
> let shareController = [meetingService getASController];  
> shareController.delegate = self;  
> }

Thanks!  
Michael

---

_[View the full topic](https://devforum.zoom.us/t/zoomsdkerror-4-on-ui-functions/38576)._
