anchor.diff:      {struct, Image} = proplists:get_value(<<"image">>, Data),
       URL = proplists:get_value(<<"url">>, Image),
   
  -    mochijson2:encode({
  -        struct,[
  -            {username, ID},
  -            {email, Email},
  -            {password, Password},
  -            {firstname, First},
  -            {lastname, Last},
  -            {description, Description},
  -            {image_url, URL},
  -            {access_token, AccToken},
  -            {refresh_token, RefToken},
  -            {admin, Admin}]
  -    }).
  +    mochijson2:encode({struct,[
  +        {username, Username},
  +        {email, Email},
  +        {password, Password},
  +        {firstname, First},
  +        {lastname, Last},
  +        {description, Description},
  +        {image_url, URL},
  +        {access_token, AccToken},
  +        {refresh_token, RefToken},
  +        {admin, Admin},
  +        {private, Private}
  +    ]}).
   
   
   -spec user_is_new(Username::string()) -> tuple().
  
positive.code: replace_token(Username, "Refresh-Token", TokenValue) -> replace_token(Username, "refresh_token", TokenValue);
  replace_token(Username, TokenName, TokenValue) ->
      case get_user_by_name(Username) of
          {error, Msg} -> {error, Msg};
          {ok, JSON}   ->
              OldToken = lib_json:get_field(JSON, TokenName),
              case OldToken == TokenValue of   % Optimization, to not update if it is not needed
                  true  -> {ok, JSON};
                  false ->
                      UserJSON = lib_json:replace_field(JSON, TokenName, TokenValue),
                      Update   = lib_json:set_attr(doc, UserJSON),
                      case api_help:update_doc(?INDEX, "user", Username, Update) of
                          {ok, NewJSON}         -> {ok, NewJSON};
                          {error, {Code, Body}} -> {error, api_help:generate_error(Body, Code)}
                      end
              end
      end.
  
negative.code: 
  -spec build_user_json(Data::tuple(), AccToken::string(), RefToken::string()) -> string().
  build_user_json(Data, AccToken, RefToken) ->
      Username = proplists:get_value(<<"id">>, Data),
      LID = binary_to_list(Username),
      case openidc:is_priviledge(LID) of
          true  -> Admin = true,  Private = true;
          false -> Admin = false, Private = false
      end,
  
      Email = list_to_binary(LID ++ "@openid.ericsson"),
  