Today any user is able to create jobs by seed job anywhere in the Jenkins despite of the user does not have permission for that. I am suggesting simple and optional restriction to be able to generate items only into folder of the seed job or in the subfolders which is typically enough. Moreover, typically new users create accidentally jobs in the root folder because of using absolute path and they are not able to delete it.
- add global configuration option to restrict Job DSL to generate jobs only into its own folder or subfolder
- fail any attempt to generate jobs outside if restriction is enabled