# getShareSettingType permission issue

**URL:** <https://devforum.zoom.us/t/getsharesettingtype-permission-issue/33846>\
**Category:** macOS\
**Created:** [October 21, 2020, 2:34am UTC](https://devforum.zoom.us/t/getsharesettingtype-permission-issue/33846 "2020-10-21T02:34:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tysontune](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tysontune/32/16798_2.png) [@tysontune](https://devforum.zoom.us/u/tysontune)\
**Post date:** [October 21, 2020, 2:34am UTC](https://devforum.zoom.us/t/getsharesettingtype-permission-issue/33846/1 "2020-10-21T02:34:44Z")

</div>

**Description**  
I would like to get access to the share setting type for a meeting to adjust my custom UI.

When the user is the host of a meeting MeetingActionController.getShareSettingType works for this.

However when the user is not host that method results in ZoomSDKError\_NoPermission.

Further, if the share setting type is in fact set to ShareSettingType\_OnlyHostCanGrab and the host is currently sharing then the ZoomSDKASController.canStartShare method for a non-host returns true when it should be false.

If I then attempt to start a share from the non-host user it does fail to start, but the screen share that the host has in progress is stopped.

Is there any way to get the share setting type as a non-host to avoid this?

**Which version?**  
v5.2.41735.0929

**Additional context**  
This is using a custom UI.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [October 30, 2020, 5:54am UTC](https://devforum.zoom.us/t/getsharesettingtype-permission-issue/33846/2 "2020-10-30T05:54:07Z")

</div>

Hi @tysontune,

Thanks for the post. The interface `getShareSettingType` is used to configure the share, thus only host or co-host has the privellege to change the settings.

If you would like to get the share status, you may receive it via the following callback:

```auto
/**
 * @brief Notification of the sharing status in the meeting.
 * @param status The sharing status.
 * @param userID The ID of user who is sharing.
 *
 */
- (void)onSharingStatus:(ZoomSDKShareStatus)status User:(unsigned int)userID;

```

Regarding the `canStartShare` method, we are able to identify an issue with this interface and we will fix this in the next release.

Thank you.
