THis is really a destructive thread. It should be closed. Shouting at one another solves no problems.
1) TSA has rules they are meant to follow; some of them are laws.
2) Many of us have had experiences with TSA people who either do not know or do not follow those rules.
3) Whether they have a right or not there is a significant probably of missing a flight, at least, by protesting. Such odds rise dramatically if one is attempting to fly while Arab, Black or dressed in distinctive garb.
4) Medications are a common area of interest if passengers are in the categories listed in 3.
Whether they have the right or not is much less of an issue from a practical perspective than whether they will assume that they do. Anybody among us who has ever been targeted for something they did not do is likely to agree with this assertion.
Rights are important, but protecting the rights often is a very high-risk proposition so one needs to be prepared to deal with the consequences when oner demands a supervisor. It is not a step to take casually unless you're not concerned to make your flight.