I have a requirement to display FullphotoURL of Partner Users in a VF page which are of 700 (Pagination can be applied to display in multiple pages).

It should be displayed with the name of the User beneath the photo (as medium icons in our folder)

Is there any way to display so. Can anyone help me out here

  • What have you tried so far? If you have started creating the VF page then post the code and any specific errors that are occurring when you try to implement it. – Dave Humm Dec 6 '19 at 12:05

You can use SLDS Class and repeat attribute to achieve this. Did you try this. Check the below sample code.


<apex:page controller="newStackOverFlowController">
<apex:repeat value="{!users}" var="user">
<span class="slds-avatar slds-avatar_circle slds-avatar_large">
<img alt="{!user.Name}" src="{!user.SmallPhotoUrl}" title="{!user.Name}" /><br/>


public inherited sharing class newStackOverFlowController {

    public list<user> users {get; set;}

    public newStackOverFlowController() {
        users = [SELECT Id, Name, SmallPhotoUrl FROM User WHERE Isactive = true AND IsProfilePhotoActive = true];

enter image description here

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