[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
That's a limitation of the Communities license. Accounts are Read-Only from within a Communities portal. See this reference for the limitations of Communities licenses.
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