Access to group attributes in custom email template

Is it possible to display in a custom email template information coming from attributes defined at group level? I’m trying to implement a Welcome email message in which I need to access information defined at group level. For this I have customized executeActions.ftl. I was able to access attributes defined at user level using <#assign attributes = user.getAttributes()>. The user is associated with a group where more attributes are defined. No attributes defined at group level are present in the user.getAttributes(). Thank you.

You’ll have to override the provider that sets up the .ftl context as well. As you can see in the current provider, the only things in the executeActions email are the ProfileBean and realm name: