Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
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
Required, but never shown