  A complete classification is given of finite groups whose elements are
partitioned into three orbits by the automorphism groups, solving the
long-standing classification problem initiated by G.\,Higman in 1963. As a
consequence, a classification is obtained for finite permutation groups of rank
$3$ which are holomorphs of groups.
