Capture user information with custom Device List button

Capture user information with custom Device List button

Dear Team,

Is there a way to capture the logged in user information when a custom control button is clicked by user on a device list row?