Groovy script did not pass safety check
Your script contains a class / service that is not in its privileges. You have an error message in the application log with the name, code, and category of the script in which the error is including the class / service you are trying to use and you do not have the rights to. For example:
2017-06-09 14:27:57.848 ERROR 32071 --- [nio-8080-exec-3] e.b.i.c.m.s.i.DefaultGroovyScriptService : [DefaultGroovyScriptService] SecurityException [Script wants to use unauthorized class: [class eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto] ] 2017-06-09 14:27:57.855 ERROR 32071 --- [nio-8080-exec-3] e.b.i.c.s.e.AbstractScriptEvaluator : [ScriptEvaluator] SecurityException [Script did not pass security inspection!]. Script code: [test], name: [Testing script], category: [TRANSFORM_TO]