The International Olympic Committee (IOC), in its Apr. 2016 document "The International Olympic Committee Anti-Doping Rules Applicable to the Olympic Games Rio 2016," published at olympic.org, stated the following:

“An anti-doping rule violation occurring during or in connection with the Olympic Games Rio 2016 may, upon the decision of the CAS [Court of Arbitration for Sport] Anti-Doping Division, lead to Disqualification of all of the Athlete’s individual results obtained in the Olympic Games Rio 2016 (or in one or more Events or Competitions) with all Consequences, including forfeiture of all medals, points and prizes…

If more than one member of a team in a Team Sport is found to have committed an anti-doping rule violation during the Period of the Olympic Games Rio 2016, the CAS Anti-Doping Division may impose an appropriate sanction on the team (e.g., loss of points, Disqualification from a Competition, Event or the Olympic Games Rio 2016, or other sanction)…

If one or more members of a team in a sport which is not a Team Sport but where awards are given to teams, is found to have committed an anti-doping rule violation during the Period of the Olympic Games Rio 2016, the CAS Anti-Doping Division may impose appropriate consequences on the team (e.g., loss of points, Disqualification from a Competition, Event or the Olympic Games Rio 2016, or other sanction).”

Apr. 2016 - The International Olympic Committee Anti-Doping Rules Applicable to the Olympic Games Rio 2016