I've seen some examples of how to delete outstanding objects from the database via script using CallMethod().
My question is how can I publish/reprovision outstanding objects using script code?
In my current use-case I tried DeleteOutstanding and re-inserting AD group memberships as a workaround, but I am getting primary key violations when I execute both within one script (the outstanding object is probably not removed right away). What I actually need is a programmatic way of publishing specific objects (with or without dependencies), kind of the same way the Manager does when I click the "Publish" button.
Try to look at the following thread. This should answer your question (if you are using 7.1.1 or higher).
In reply to Markus Weiss-Ehlers:
In reply to Christian Ageu: