Configure Automatic Project Creation in Composite Projects

Enable the feature of automatic creation of regular projects within composite projects.

If this feature is enabled for a composite project, Agents would automatically create regular projects within this project during their connection process.

Prerequisites: This feature is enabled globally, as described in Configure Automatic Project Creation.

  1. In the main menu, click (Projects) and open a project that you want to configure.
  2. Click Features.
  3. Toggle the Enabled switch for Automatic Project Creation on.
  4. Click Configure, and optionally select a project template to apply to the auto-created projects.
  5. Click Save.
Next Steps
To create a regular project within a composite in an automation scenario, pass the new project key and the existing composite project key to a command that starts an application with an Agent. For example:
java -javaagent:"/myapps/webgoat8/seeker/seeker-agent.jar" -Dseeker.project.key=MyNewProject -Dseeker.composite.project.key=ECOMM  -jar webgoat-server-8.0.0.M25.jar --server.port=19090 --server.address=0.0.0.0

In an automation scenario that creates multiple projects within a composite, you can pass the new project key in an environment variable:

java -javaagent:"/myapps/webgoat8/seeker/seeker-agent.jar" -Dseeker.project.key=$my_new_project_key -Dseeker.composite.project.key=ECOMM  -jar webgoat-server-8.0.0.M25.jar --server.port=19090 --server.address=0.0.0.0
Note: The above examples apply to the Java Agent. For other Agents, you can use the SEEKER_PROJECT_KEY and SEEKER_COMPOSITE_PROJECT_KEY environment variables to specify the project keys. The Java Agent supports both these variables and JVM properties.
Tip: To facilitate user administration for a composite project, enable the Project Membership Inheritance option for that project. When new projects are added to the composite, they will inherit all its project members along with their roles.

For details, see Configure Project Membership Inheritance in Composite Projects.