In my experience deportees are handed over to the Senior Crew member who holds their documentation throughout the flight. They would only be informed of relevant information with regard to their well being during flight ie they are diabetic or require vegetarian etc.
The Captain is fully aware of their presence but no more information than necessary as above.
If they are believed to be liable to cause a problem with other passengers or crew they are escorted by an official of the immigration services.