Being denied boarding due to an oversold condition is one thing, and there are regs to cover how that should be handled, and what is owed in compensation.

Being allowed to board and then asked to deplane because the airline has suddenly discovered that it needs your seat to transport deadheading crew is something else altogether.