return reg_doc on by_grouup_id scope.  all_null on delegate