[SalesForce] Get username using Lightning Data Service

Is there a way to get current running user name(email, id, whatever) using only data service?

Best Answer

It is possible now.

<aura:attribute name="currentUser" type="User" />
<force:recordData
    fields="Name, Email, UserType"
    recordId="{!$SObjectType.CurrentUser.Id}"
    targetFields="{!v.currentUser}"
    mode="VIEW"
/>