Actaully I am new to salesforce . i want to create new visualforce page without any standard or controller in that page . this page should get only user name and user profile in single page.

Could you please help on this .

Thanks in Advance,

3 Answers 3


Yes, you can use a global variables of the Visualforce. In your case the $User variable:

<apex:page >

   User Name: {!$User.FirstName} {!$User.FirstName}


Note that you can access only a limited number of merge fields of the User. For example you can not get a user.SmallPhotoUrl.


You can do that and from your requirement you could use the global variable $User


Use global variable in your VF page.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .