To get the current user information, use the @salesforce/user scoped module in LWC.