A groovy script to create Content Selectors, privileges, and roles programmatically via the Scripting API.
Version latest was released May 31, 2017
This groovy script creates Content Selectors, Privileges and Roles programmatically.
You can read more about working with the Scripting API here.
As well there are many more examples here.