How to get the logged in user info

Accessing the ID of the current user is now documented here.