How to get player head?`

execute as @a[team=P1] run loot replace entity @e[tag=p1.controller] armor.head loot {"function": "minecraft:fill_player_head","entity": "this"} I have this setup in my datapack and I want it to run and set the spefic player head to the exact player head.
Continue to help post