title: CQ5 / AEM Change permissions on groups with curl
body: <p>I need to construct a curl command that will change read etc permissions for groups on specific nodes in the repository. I can obviously do this manually, but need to create a script. I have seen examples that do this for users, but I can't make it work for groups. In my examples below, "acme-authors" is a group.</p>
  
  <p>Produces apparently correct response, but does not change anything</p>
  
  <pre><code>curl -u admin:admin -F:applyTo=acme-authors \
      http://server.com:4502/etc/tags/acme.acl.json
  </code></pre>
  
  <p>Gives "no principalId found" error</p>
  
  <pre><code>curl -u admin:admin -FprincipalId=acme-authors -Fprivilege@jcr:read=denied \
      http://server.com:4502/etc/tags/acme.acl.json
  
  curl -u admin:admin -FgroupId=acme-authors -Fprivilege@jcr:read=denied \
      http://server.com:4502/etc/tags/acme.acl.json
  </code></pre>
  
  <p>Can anyone tell me how to do this for groups?</p>
  
  <p>Thanks! </p>