Joe,
It is certainly possible. Since it is generally only done once per group/form, I wouldn't recommend it.
First, it would take more time to set up the code than to just set the permissions (Manually).
Second, you would be left with a "Copy" of the permissions - and a road map for the 'world' as to how to change them more-or-less at their convenience.
Thrid, you will have created an additional "Maintenance" issue, since you could change the permissions either in the security manager or in your "code" (and/or any table(s) you might create in/for the process.
Like the tic-tac ad says,
" ... yes, but I wouldn't recommend it ... "
MichaelRed
redmsp@erols.com
There is never time to do it right but there is always time to do it over