I have a workflow in my subsite that is available when I activate a feature. The workflow has app step and also the workflow running on my list at subsite updates a list on my root site.
To do so I need to give permissions to my workflow app identifier at the root site manually(from appinv.aspx and app identifier lookup value) and its app identifier appears when I see it in site app permissions at the root site. Only then it allows me to update the list at my root site.
How do I do this using CSOM?