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
EtienneCoutantEtienneCoutant 

show/hide blocks based on User Profile

Hi,

 

Is it possible show/hide blocks based on the User Profile, using the parameter 'rendered'? More generally, do we have access to User profile info in a Visualforce page?

 

Thanks.

 

Best Answer chosen by Admin (Salesforce Developers) 
SteveAnderson41SteveAnderson41
There's a recipe in the cookbook titled, "Overriding a Page for Some, but not All, Users" that takes this idea even further.

All Answers

jwetzlerjwetzler
Of course.  Please review the doc for $User and $Profile.
SteveAnderson41SteveAnderson41
There's a recipe in the cookbook titled, "Overriding a Page for Some, but not All, Users" that takes this idea even further.
This was selected as the best answer
EtienneCoutantEtienneCoutant
Thanks everyone, that was really helpful!! and quick!!