Save Last User

Good afternoon, I have a switch

that closes a drawer, but I want to know who was the last user who opened / closed the drawer, is it possible to collect this information?