Involuntary commitment can be a prerequisite for employment. In the state of New York it is stated
" However, work is regarded as one of the mainstays of recovery, so State Office of Mental Health facilities do offer opportunities for work or work training in keeping with state and federal labor laws.
Your must be told verbally and in writing about work or work training. You must be told the rate of pay, the pay period, how total pay is determined, what deductions are made and the reason for each of them. You also must be told about the provisions of State Office of Mental Health regulations about work and work training.
If you are between the ages of 5 and 21, you have a right to the same educational and vocational services that you are entitled to outside a state psychiatric center."
Source:
https://omh.ny.gov/omhweb/patientrights/inpatient_rts.htm