Unless you have a medical condition that requires an accomodation (such as sitting to perform your work duties), or this action violates the terms of a union agreement/employment contract, or in some way constitutes some form of actionable discrimination, it is perfectly legal. The fact is that most workplce arrangments are what is known as "at will". This means that a company can set the conditions of employment much as it sees fit.