Is this sentence grammatically correct: They want to be accepted for whom they are.
No, it's not. The object of this sentence is "who they are". "They" is the subjective case so it can't be "whom". It doesn't sound right, also.
indeed it is