function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
emmadiemmadi 

Need to get User Object in HomePage component

HI All,

 
I have a home page component I need to get user object or User ID can some guide to solve my issue.  
 
Thanks,
Praveen
SRKSRK
You can assign a VisualForce Page as a home page component
Devendra@SFDCDevendra@SFDC
Try,

Id userId = UserInfo.getUserId(); // This will return userId of Current User

You can go through the salesforce document for the same:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_userinfo.htm

Thanks,
Devendra