anchor.diff:  		Locale = F2(F2, Characteristic),
   		case mod_auth:add_user(ID, Password, [{locale, Locale}] , Port, "/") of
   			true ->
  -				Location = "/partyManagement/v1/individual/" ++ ID,
  -				PasswordAttr = {struct, [{"name", "password"}, {"value", Password}]},
  -				LocaleAttr = {struct, [{"name", "locale"}, {"value", Locale}]},
  -				Char = {array, [PasswordAttr, LocaleAttr]},
  -				RespObj = [{"id", ID}, {"href", Location}, {"characteristic", Char}],
  -				JsonObj  = {struct, RespObj},
  -				Body = mochijson:encode(JsonObj),
  -				Headers = [{location, Location}],
  -				{ok, Headers, Body};
  +				GroupName = get_params(),
  +				case mod_auth:add_group_member(GroupName, ID, Port, "/") of
  +					true ->
  +						Location = "/partyManagement/v1/individual/" ++ ID,
  +						PasswordAttr = {struct, [{"name", "password"}, {"value", Password}]},
  +						LocaleAttr = {struct, [{"name", "locale"}, {"value", Locale}]},
  +						Char = {array, [PasswordAttr, LocaleAttr]},
  +						RespObj = [{"id", ID}, {"href", Location}, {"characteristic", Char}],
  +						JsonObj  = {struct, RespObj},
  +						Body = mochijson:encode(JsonObj),
  +						Headers = [{location, Location}],
  +						{ok, Headers, Body}
  +				end;
   			{error, _Reason} ->
   				{error, 400}
   		end
  
positive.code: 		{struct, Object} = mochijson:decode(RequestBody),
  		{_, ID} = lists:keyfind("id", 1, Object),
  		{_, {array, Characteristic}} = lists:keyfind("characteristic", 1, Object),
  			F1 = fun(_F, [{struct, [{"name", "password"}, {"value", Pass}]} | _]) ->
  						Pass;
  					(_F, [{struct, [{"value", Pass}, {"name", "password"}]} | _]) ->
  						Pass;
  					(F, [_ | T]) ->
  						F(F,T)
  			end,
  		Password = F1(F1, Characteristic),
  			F2 = fun(_F, [{struct, [{"name", "locale"}, {"value", Locale}]} | _]) ->
  						Locale;
  					(_F, [{struct, [{"value", Locale}, {"name", "locale"}]} | _]) ->
  
negative.code: -module(ocs_rest_res_user).
  -copyright('Copyright (c) 2016 - 2017 SigScale Global Inc.').
  
  -export([content_types_accepted/0, content_types_provided/0, get_params/0,
  		get_user/1, get_user/0, post_user/1, put_user/2, delete_user/1]).
  
  -include_lib("radius/include/radius.hrl").
  