Where does this black wire go (3 pin drivers door jamb switch?)

Connects to the switch to activate dome light . When you open the door.