Thanks
Documenting the following in case someone else wants to do similar
NOTE: I tried the group name "ap-generals". That ended up not working. The "addgroup" command worked, but the "flexible" command silently failed when I clicked the AND. Turns out the "-" in there is bad. Probably a bug in flexible.
I created "apgenerals" and the AND worked. However I had to modify your command to have the keyword "condition".
So the steps end up being:
* !addgroup {groupname}
* !flexible
* (click "AND" for the new group)
* !flexible condition add {groupname} org = {myname}
* !flexible condition add {groupname} rank_id = 1
(for general, 0 for president, etc)
* !security levels
* (click the security level I want for this group)