anchor.diff:  %% Purpose: Does search for Users for either search done with POST or GET
   %% Returns: {true, ReqData, State} || {{error, Reason}, ReqData, State}
   %% @end
  --spec process_search(ReqData::tuple(), State::string(), term()) ->
  -                 {list(), tuple(), string()}.
  +-spec process_search(ReqData::tuple(), State::string(), term()) -> {list(), tuple(), string()}.
   process_search(ReqData, State, post) ->
           {Json,_,_} = api_help:json_handler(ReqData,State),
           FinalQuery = "{\"query\" : {\"term\" : " ++ Json ++ "},\"filter\" : {\"bool\":{\"must_not\":{\"term\":{\"private\":\"true\"}}}}}",
  
positive.code: -spec add_server_side_fields(Json::string()) -> string().
  add_server_side_fields(Json) ->
      lib_json:add_values(Json,[{rankings, "[]"},{notifications,"[]"},{triggers,"[]"},{subscriptions, "[]"}]).
  
  
  %% @doc
  %% Function: add_openid_fields/2
  %% Purpose: Used to add all the fields that should be added server side
  %% Returns: The new json with the fields added
  %% @end
  -spec add_openid_fields(Json::string()) -> string().
  add_openid_fields(Json) ->
      AccessToken  = plus_srv:get_access_token(),
      RefreshToken = plus_srv:get_refresh_token(),
      lib_json:add_values(Json, [{access_token, AccessToken}, {refreshtoken, RefreshToken}]).
  
  
negative.code:                         UserBinary ->
                              %% CHECK AND SANITIZE USERNAME
                              UserName = string:to_lower(binary_to_list(UserBinary)),
                              UserNameApproved = check_and_sanitize(UserName)
                      end,
  
                      case {api_help:do_only_fields_exist(UserJson,?ACCEPTEDFIELDSUSERS),UserNameApproved,UserName =/= undefined} of
                          {_,_,false} ->
                              {{halt,403}, wrq:set_resp_body("Username missing", ReqData), State};
  