anchor.diff:      ok.
   
   new_record(OrgId, AuthzId, GroupData) ->
  -    Name = ej:get({<<"groupname">>}, GroupData),
  +    Name = ej:get({<<"groupname">>}, GroupData, ej:get({<<"id">>}, GroupData)),
       Id = chef_object_base:make_org_prefix_id(OrgId, Name),
       #oc_chef_group{id = Id,
                          authz_id = AuthzId,
  
positive.code: query_and_diff_authz_ids(QueryName, AuthzIds, Key, CallbackFun) ->
      case CallbackFun({QueryName, [AuthzIds]}) of
          not_found ->
              {[], []};
          Results when is_list(Results)->
              Flattened = lists:flatten(Results),
              ResultNames = proplists:get_all_values(Key, Flattened),
              FoundAuthzIds = proplists:get_all_values(<<"authz_id">>, Flattened),
              {ResultNames, sets:to_list(sets:subtract(sets:from_list(AuthzIds), sets:from_list(FoundAuthzIds)))};
          _Other ->
              {[], []}
      end.
  
negative.code:    {[]}.
  
  update_from_ejson(#oc_chef_group{name = OrigName, clients = OrigClients, users = OrigUsers, groups = OrigGroups} = Group, GroupData) ->
      error_logger:info_msg({update_from_ejson, Group, group_data, GroupData}),
      Name = ej:get({<<"groupname">>}, GroupData, OrigName),
      Clients = ej:get({<<"actors">>, <<"clients">>}, GroupData, OrigClients),
      Groups = ej:get({<<"actors">>, <<"groups">>}, GroupData, OrigGroups),
      Users = ej:get({<<"actors">>, <<"users">>}, GroupData, OrigUsers),
      Result = Group#oc_chef_group{name = Name, clients = Clients, groups = Groups, users = Users},
      error_logger:info_msg({update_from_ejson_result, Result, Group =:= Result}),
      Result.
  
  fields_for_update(#oc_chef_group{last_updated_by = LastUpdatedBy,
                                       updated_at = UpdatedAt,
  