update user in ApiService::foreignCall() function