web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Showing External User ...
Power Pages
Suggested Answer

Showing External User Details and Filtering Tables

(0) ShareShare
ReportReport
Posted on by 61
Hi All
 
I am pretty new to power pages! I have been using power apps for a long time but need to show certain data we gather in power apps to external clients through power pages.
 
I have this code to show the users name:
 
 
 
However when I log into the site as an external user in a different browser, no details are being shown on screen:
 
Is there something that I am missing? The user exists in the dataverse contact table and as a contact in power pages portal management section.
 
 
Also while on this - is there a way I can then use the users name to filter tables to only show info relating to that organisation
 
Thanks
Laura
Categories:
I have the same question (0)
  • Suggested answer
    Jerald Felix Profile Picture
    348 Super User 2026 Season 1 on at
     
    Welcome to Power Pages Q&A forum. the requests.currentcontact Liquid code works great once external users have proper web roles and authentication. External contacts need username/password setup or external identity linked.
     
    Why Name Not Showing
    External users show blank because:
    • No web role assigned to contact
    • ​Missing username on contact record
    • ​Cache issue—clear portal cache after changes
    Fix: Setup External User Access
    • Portal Management → Contacts → Edit your external contact
    • ​Web Authentication tab → Add Username and set Password
    • Web Roles tab → Assign role (e.g., "Authenticated Users")
    • ​Save → Clear cache (Data → Clear cache)
    • ​Login with username/password → Test {{ requests.currentcontact.firstname }} {{ requests.currentcontact.lastname }}
    Filter Tables by Organization
    Link data to contact's parent account (organization):
    ​
    Method 1: List Component (No Code)
    • Create List → Your table (e.g., Training Data)
    • Filter Conditions → Portal User Attribute = Contact → Field = Organization (parentcustomerid/account lookup)
    • ​Add list to page → Auto-filters to logged-in user's org!
    Method 2: Liquid/FetchXML
    {% fetchxml mydata %}
    <fetch>
      <entity name="your_table">
        <filter type="and">
          <condition attribute="organizationid" operator="eq" value="{{ requests.currentcontact.parentcustomerid.id }}" />
        </filter>
      </entity>
    </fetch>
    {% endfetchxml %}
    
    {% for item in mydata.results.entities %}
      <div>{{ item.name }}</div>
    {% endfor %}
    
     
     
    Test Code (Updated)
    Replace your code with:
    {% if requests.currentcontact %}
      <h3>Welcome, {{ requests.currentcontact.firstname }} {{ requests.currentcontact.lastname }}!</h3>
      <p>Organization: {{ requests.currentcontact.parentcustomerid.name }}</p>
    {% else %}
      <p>Please log in.</p>
    {% endif %}
    
     
    Permissions: Table permissions → Contact scope → Field = Organization lookup → Web role access.
    ​
    Clear cache after every change (15 min auto-refresh otherwise). Test in incognito!
     
    Cheers,
    Jerald Felix
     
  • Suggested answer
    Fubar Profile Picture
    8,463 Super User 2026 Season 1 on at
    "I have this code to show the users name:" is not showing any code.
     
    a) Confirm you are logged into the portal, after signing in the contacts full name should be displayed in the top right corner (where originally it would have been signin).
     
    b) if signed in, the Liquid {{ user.fullname }} should display the logged in users (contacts) full name if placed in an area that renders Liquid (e.g. the Page Content area) or user.firstname for the users first name etc (where the field name is the lowercase logical schema name of the column on the contact table including any prefix if any). 
     
    c) at a minimum the portal user will need a Web Role with a Table Permission on the Contact table of atleast 'self', Often this is already configured for the out of the box Authenticated Users web Role which is also by default set to be inherited by signed in users.
     
    Generally you do not filter on text, the portal user is a Contact record and so to effectively filter you need your Tables records to be linked to the Contact (e.g. record has a Lookup to Contact that is populated with the user in question, or a many-to-many relationship), you can then either use Table Permissions to filter or Lists also can be configured to filter to the currently logged in user.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Suriyanarayanan V Profile Picture

Suriyanarayanan V 45

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 14 Most Valuable Professional

#3
DP_Prabh Profile Picture

DP_Prabh 13

Last 30 days Overall leaderboard