The Court of Arbitration for Sport on Friday ruled against allowing 47 Russian athletes and coaches from participating in the Winter Olympics in Pyeongchang, South Korea, due to doping concerns.

The Russians had attempted to appeal the International Olympic Committee's ruling that had banned them from competing.

The decision came hours before the opening ceremony. Some of those who appealed the decision have lifetime bans after they were determined to have used drugs to improve their performances during the Sochi winter games in 2014.

Those who appealed wanted to gain permission to compete as "independents," or "Olympic Athletes from Russia." That would have allowed them to wear a uniform with that name and have the Olympic anthem played at any medal ceremony.

But the court stood by the IOC's decision and said members of that body had not "improperly exercised their discretion."