Clean the beans and cut into pieces approx. 2 cm in size. Cook with an onion, the savory and salt in a saucepan with water until soft. Drain, remove the onion and savory and let the beans cool.
Now finely chop the other onion, cut the eggs into small cubes and add everything to the beans. Mix with the mayonnaise and season with salt and pepper.