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