workmail_list_groups_for_entity function

Returns all the groups to which an entity belongs