get the current user name in apex code example Example: apex get current user id UserInfo.getUserId()