SRD:Soul Dominion

When a character casts this spell, he or she is temporarily able to take control of another sentient creature with whom the character is familiar (by meeting, observing, or successfully scrying the subject). The target receives a Will save, and if successful, prevents the character from making the telepathic connection. The target is aware of the attempted takeover as a strange, momentary tingling. If the Will save fails, the character is able to control the subject’s body as if it were his or her own, hearing, seeing, feeling, smelling, and tasting everything the target senses. Once the character dismisses the spell or its duration ends, the target resumes control of its body, fully aware of all events that occurred, having been a helpless witness trapped inside its own body. The target knows the name and general nature of its possessor if it succeeds at an additional Will saving throw. A character cannot control undead or incorporeal creatures with soul dominion.