def METHOD_NAME(self, instance):
    representation = super().METHOD_NAME(instance)
    groups = []
    for group in get_groups_with_perms(instance):
        groups.append(GroupSerializer(group).data)
    representation['groups'] = groups
    return representation