to have (done something) to him, to her, to you
Lamento haberle ocasionado tantos problemas.
I'm sorry to have caused you so much trouble.
Debe haberle sentado mal la cena.
Dinner must not have agreed with him/her.
— Todo sobre mi madre (1999)
Deberíamos haberle preguntado si quería traer su bikini.
We should have asked her if she wanted to bring her bikini.
— Mommy (2014)
Tom acusó a Mary de haberle robado su dinero, pero ella lo negó.
Tom accused Mary of stealing his money, but she denied it.
La anciana me agradeció por haberle ayudado a cruzar la calle.
The old woman thanked me for helping her cross the street.
Estoy seguro de haberle visto en alguna parte, pero no me acuerdo de quién es.
I'm sure I've seen him somewhere, but I can't remember who he is.