Omnicd does this right out of the box. If you use grid for example it'll attach the icons to the grid. You can offset the X and Y location of the anchors to put them above the grid if you use horizontal for example or default if vertical. It will put the icons next to the appropriate player name and that based on your preferences for their class

I use a horizontal layout so I click the expand upwards option. It's not really difficult to setup and it allows you to choose what cooldowns you want to track which I really like. When I was 5 boxing for M+ I liked having my stuns on there to know who had an available shadowfury or cap totem.