Enabe/Disable Participant Sharing during meeting

I have a business use case that requires the host to be able to enable/disable participant sharing during a meeting. I attempted to accomplish this by updating the user setting “who_can_share_screen” as the host, but this only has the desired effect if the setting is updated BEFORE the meeting starts. After sifting through the documentation(both API and windows SDK) i have been unable to find anything that allows this to be updated in real time. I know there is an option under advanced sharing that should allow this, but we also have use case that this tool bar be hidden from the main view and controlled by a secondary application. I would have assumed that since this is part of the core functionality there would be a way to also achieve this programmatically. Any help or direction would be appreciated.

Thanks