The pronoun should match the noun it is replacing. For example, if you are talking about a singular noun that is female and having the action done to her, use her:The guard stopped Rebecca and greeted her.