How to get the logged in user info

Yes, that’s useful for scripts outside of server connect.
Inside server connect, this is returned by the security provider step, so when you include it in the steps, you have the logged user ID.