[SalesForce] How to get the user logged in in community page

I need get the user id logged in a web page community site.com (not is a VisualForcePage) in this page I need the user id and others user's fields.


Best Answer

I dont think you can get it from the component or client side you need to query the information from server side with all the fields you want and pass it back to the lightning component.

Below syntax can be used as a starter in apex to get user id

Related Topic