How do I enable accessibility on Teams using C# code

Copper Contributor
I am working on a desktop plugin which works on MS Teams desktop app. In short this plugin is an overlay which sits on top on MS Teams app and tracks elements (eg. Chats, Calendar etc.). To track and find elements by plugin, accessibility settings must be enabled for MS Teams. This can be done manually by going to accessibility setting and enabling below checkboxes (shown in screenshot below).

Now the question is, how can I reliably do it from the code preferably using C# code. Please comment if you need more details about the question.
 

 
0 Replies