Skip to main content

Do we need to cal an apex controller to get current user info.  I saw this in a forum post: 

var userId = $A.get("$SObjectType.CurrentUser.Id");

Console.log(userId);

but don't see the supporting documentation?  Anyone know if lightning data service can be used to retrieve current user info?

1 条评论
0/9000