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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.