Right, in a passive sentence, the grammatical subject is not the performer of the action.
“I am supposed to be a student” is correct. More context is needed to be sure of the intended meaning. The person may be asserting the fact to someone who is not treating them like a student, or they may be reminding themselves that they ought to behave like a student, for example.