---
schema_version: "1"
id: 2f2ef87b2d9f42e9153c340fc5f68126c03a85586674f10a93c5d50e7024ee16
title: Display Current Community User Information
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/siteforce_communities_data_code.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.siteforce_communities_data_code.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 571737d4c274db3db9679ea91468b188791f082794183b5f7d45a989804a49d8
description: Site.com designers creating authenticated pages for a community site can display the current user's information by accessing CurrentUser namespace expressions.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Display Current Community User Information

Site.com designers creating authenticated pages for a community site can display the current user's information by accessing `CurrentUser` namespace expressions.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
        <colgroup>
          <col>
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p>Available for purchase in: <strong>Enterprise</strong>, <strong>Performance</strong>,
                and <strong>Unlimited</strong> Editions</p>
              <p style="margin-bottom:0;">Available (with limitations) in:
                <strong>Developer</strong> Edition
              </p>
            </td>

          </tr>
        </tbody>
      </table> <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d35344e77">User
              Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d35344e77 ">To build, edit, and manage a community’s Site.com custom
              pages:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d35344e77 ">
              <p>Create and Set Up Communities</p>
              <p>OR</p>
              <p><samp class="parmname">Site.com
                  Publisher User</samp> field enabled on the user detail
                page</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Site administrator or designer role
                assigned at the site level</p>
            </td>

          </tr>
        </tbody>
      </table>

1. Open the page on which you want to display the current community user's information.
2. From the Page Elements pane, drag a **Content Block** or **Custom Code** page element onto the page.
3. Type {!CurrentUser. and the value that you want to display.
    
    For example, `{!CurrentUser.firstName}`.
    
    Check the list of [available expressions for displaying current user information](https://help.salesforce.com/s/articleView?id=platform.siteforce_communities_data_code_reference.htm&release=264.0.0&type=5 "Use these CurrentUser namespace expressions to display authenticated user information on a Site.com community page.").
4. Add any additional text you require.
    
    For example, `Welcome back {!CurrentUser.firstName}!`.
5. If you're in a Content Block, click **Save**. If you're in a Custom Code element, click **Save and Close**.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

Note If an unauthenticated user views a page that contains `CurrentUser` expressions, the current user information does not appear. For example, if an unauthenticated user viewed a page that contained the previous example, the user sees “Welcome back !” as the welcome message.