I want to render one page block section on the page to certain user only.
<apex:pageBlockSectionItem rendered="{!$User.Name == opp.Security_Officer_Name__c}">
<apex:inputfield />
</apex:pageBlocksectionItem>
above code gives me an error for $User.Name
Error Message "Field Name does not exist. Check spelling." and starange part is if I use $User.FirstName
it works fine.
Does anyone know reason behind this? Any help is appreciated.
Many Thanks