posted 16 years ago
It is possible to directly set permission in the database, but the whole thing is very complex and tricky. I always end up wandering thru the code myself to remember all the ins and outs (plus it's somewhat version specific, e.g. 2.1.6 does not behave like 2.1.8, etc).
In addition, security information is cached in memory so changes done directly to the DB might not take effect until the web application is restarted.
That said, the easiest way to do this is probably to use the Apache Commons HTTPClient package to automatically create a POST request that matches the group permission s form you manually fill out. Then have that submit it.
Or if you want to dig around some more, you could start with the GroupAction.permissionsSave() method and drill down from there.
[originally posted on jforum.net by monroe]