If the imam recites, imam and follower prostrate together. If a follower recites within the prayer, the text does not impose that prostration. If an outsider is heard, the prostration is made after prayer, not during it.
The standing of the reciter within the prayer determines the distinct rulings.