I've written a seeder job using the Job DSL Plugin to create folders with a predefined collection of jobs inside. I also use the Ownership Plugin to control which users get access to each folder.
Now I need the user who fired the seeder job to be assigned as the folder's primary owner.
I tried setting "Assign job creators as owners" configuration option, but the result I get is that the created folder's owner is SYSTEM
.
Is there a way to set the primary owner of the folder programmatically?