Get current user Info :
Lightning Controller : var currentUserId = $A.get("$SObjectType.CurrentUser.Id");
Apex : User userObj = [SELECT Id, Name, UserName FROM User WHERE Id =:userInfo.getUserId()];
Lightning Controller : var currentUserId = $A.get("$SObjectType.CurrentUser.Id");
Apex : User userObj = [SELECT Id, Name, UserName FROM User WHERE Id =:userInfo.getUserId()];