+ Start a Discussion
洋 長谷川洋 長谷川 

how to get community user login themselves?

I'd like to let community users login themselves and get user resources in my web app.

Boss CoffeeBoss Coffee
Using Apex, you can use the following to get logged in User Id (and more).
Id uId = UserInfo.getUserId();
UserInfo Documentation:
Link (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_userinfo.htm)