You need to call the $A.get("$SObjectType.CurrentUser.Id")
, to get the User Id in the Lightning JS Controller.
1 2 | var userId = $A.get( "$SObjectType.CurrentUser.Id" ); Console.log(userId); |
You need to call the $A.get("$SObjectType.CurrentUser.Id")
, to get the User Id in the Lightning JS Controller.
1 2 | var userId = $A.get( "$SObjectType.CurrentUser.Id" ); Console.log(userId); |