how to get the logged in user id from apex code example Example: get current logged in user id in apex UserInfo.getUserId()