Hi everyone,
Has anyone figured out a way to reliably automatically assign a, for example, unassigned ticket to the Agent’s Group where the Agent performing the event is a member?

In principle it is very similar to the ability in Workflows to ‘Assign to Agent: Event Performing Agent’ but this is unavailable for the ‘Assign to Group’ Action.
Ideally it would assign to that Agent's ‘primary’ Agent Group but I don’t believe that is a concept in Freshservice?
In the scenarios where an Agent is a member of multiple Agent Groups (which is very common in our environment) the API is going to return an array of Agent Group ID’s for that Agent with no way for it to understand which is their preferred/primary Agent Group.
I’ve looked at leveraging a custom Agent User Field where an Agent’s ‘Primary’ Agent Group could be set but there doesn’t appear to be a way to reference an existing Data Source here like there is in Field Manager:

I would of course use the ‘Agent Group’ data source here I’m out of luck in this instance.
Anyone have any better ideas?