The name 'Ansem' may refer to
Xehanort, whose Heartless called itself 'Ansem';
DiZ, also known as Ansem the Wise;
Xemnas, the Nobody of Xehanort;
or Riku, who besides being possessed for a short time by Xehanort's Heartless, took the name of Ansem so that he could use the darkness fully.