A group A is said to be endoprimal if its term functions are precisely the functions which permute with all endomorphisms of A. In this paper we describe endoprimal groups in the following three classes of abelian groups: torsion groups, torsionfree groups of rank at most 2, direct sums of a torsion group and a torsionfree group of rank 1.