Group checking in twig

I havent been able to find much information about how to use group authorization in twig.
Pseucode I would like to do:
{% if ‘some group is authorized’ %}
Authorized portions of the site
{% endif %}

The authorize function seems to only work for admin and user control.
Any help would be greatly appreciated.
Cheers,
Dave

I think I have figured it out.
In the Admin Addon User Manager plugin settings, you need to add custom permissions.
I added a series of new persmissions that matched my group ones: group.manager, group.developer etc
Then in the twig I could use authorize like:
{% if authorize( [‘group.manager’] ) %}
blah
{% endif %}
This seems to work reasonably well, and you can have multiple groups in the authorize list. The only thing is that it doesnt directly map to the groups I had created in my Groups Manager. So Im still working out how to best do that.
Hope this helps.