Get usernames site wide

Hey
Does anyone have a great script you can site wide to get the logged in user? I need to call a function to get the user so I can filter all data collections using their username.

did you try wix-users?
https://www.wix.com/code/reference/wix-users.html

I am blushing and are ashamed… I have totally missed it… sorry