How would you put a status effect above someones name in a datapack?

Im having trouble adding a status effect above a players head i've only gotten it to work on entities so far
Continue to help post