IRD - is it possible to get agentGroup from a espefic agent

Hello,

Can anyone tell me if there is a way to get/find the agentGroup from a specific agent in IRD.
I received the userName from attached data, and i need to obtain the agentGroup to update another params.

Best regards.

As I know, there is no default function offering it. You can for example obtain such information from CFG database

try TargetState -
Return value type: LIST. This function returns detailed state of target and every of its DN. function —
it returns a list of attributes corresponding to that agent -
and would show up his skill or agent grp i don t remember exactly !

Agent can be member of many groups - how you going to find out which one you need?
Anyway - If you know agent’s EmploeeID you probably can use function ExpandAgent[EmploeeID] to get list all agent groups the agent is member of.