There are three instances; a) Either a person is an Imaam (leading the prayer), b) A Muqtadi (following the Imaam), and c) A Munfarid (reading Salaat individually). When making salaam, the Imaam will make intention for the men, women, children, haemophrodites, angels and the pious Jinnaat. The Muqtadi will make intention for the Imaam on the right if he (the Imaam) is to the right of him and on the left if the Imaam is to the left of him and he will make intention for the Imaam on both sides if he is directly behind the Imaam. He will also make intention for the angels and pious Jinns and the Munfarid will make intention for the angels. (Tahtawi pg.223)