I write some script in Groovy to create repositories, privileges and roles.
When I create roles with privileges, there is no problem during script execution.
But, when I access to roles in Nexus Interface, I did not see created roles and I got this error in nexus.log : Error on deserialization of Serializable DB name="security"
More information in attachment.
About the Groovy script, this is an extract :
I noticed that if rolePrivileges are hard values, there is no problem.
Thank you for you help