I have managed to create new tasks (workflow instances) using the C# openiap package.
I use the InsertOne call to add it to the “workflow_instances” collection.
It is added such that the the user that is logged in through the api and is making the InsertOne call and the admins role have rights to it. Which makes sense. That could be the correct rights. But I want the role that I set as “targetid” to be able to see it too. Unfortunately I dont know how to set the rights correctly before doing the InsertOne call or correcting it with UpdateOne after.
Hope you can help me out on this @Allan_Zimmermann