Change the narration: The guard asked, “Who are you?”

Change the narration: The guard asked, “Who are you?”

Explanation

The guard asked who I was.

In indirect speech, "Who are you?" becomes "who I was" with past tense.

The question form is changed to a statement structure in reported speech.