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
crazyforcercrazyforcer 

!$User.Manger is not available in Visual Force Page

Hi,

 

I could get User info like First name and Last Name in Visual Force page using {!$User. notation. But when I tried to get !$User.Manager it tells that Manger field is not available. 

 

So, how can I access User.Manager field in a Visual Force Page

yuyinchayuyincha

you must access it use controller(using apex code);

aalbertaalbert

If you just want the Id, you can use {!$User.ManagerId}

Or if you want more details about that specific User, you can query the associated User record in the controller and display those fields on the VF page.