How to display Group and Group Set in custom field?

Hello

I am trying to find a way on how the display Group and Group Set field as custom field (obviously to have the group & set values displayed). 

See the picture atatched.