title: Nexus3 Groovy script to add role using External Role mapping from LDAP
body: <p>I'm working with Nexus3 groovy scripting to Provision/Bootstrap my Nexus3 - OSS instance.  While looking through <a href="https://github.com/sonatype/nexus-book-examples/tree/nexus-3.0.x/scripting" rel="nofollow">the complex scripting examples and the shell scripting examples</a> as well as <a href="http://books.sonatype.com/nexus-book/3.0/reference/scripting.html" rel="nofollow">the sonatype books</a>, i'm not seeing any clear documentation about the security method and it's parameters. </p>
  
  <p>My main question is how do I map an LDAP group to a Nexus Role using groovy?</p>
  
  <pre><code>security.addRole('admin.role', 'Admin', 'Some Description', 'nx-admin', 'LDAPGroupName')
  </code></pre>
  
  <p>I'm getting a 400 with this when pushing to Nexus and running. I appreciate any help I can get here.</p>