You would use the Automation script (see below). As part of creating a group, you can assign a trust level to be automatically granted with it:
It’s part of the Automation plugin: