> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.sigmacomputing.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server.

# CurrentUserAttributeText

> Use the Sigma CurrentUserAttributeText function to return the corresponding attribute value for the current user as a Text data type.

The **CurrentUserAttributeText** function returns the corresponding attribute value for the current user as a Text data type.

## Syntax

`CurrentUserAttributeText("attrName")`

<dl>
  <dt>
    attrName
  </dt>

  <dd>
    Required
  </dd>

  <dd>
    Name of the user attribute generated in the 

    <strong>User Attribute</strong>

     section of the 

    <a href="/docs/access-the-administration-portal">Admin</a>

     portal.
  </dd>

  <dd>
    Returns the current user's corresponding attribute value.
  </dd>

  <dd>
    The argument must be a Text data type.
  </dd>
</dl>

## Example

An admin adds a text column named **Region** into a dataset, creates a user attribute called **Region Attribute,** and assigns the user attribute to the following teams:

* West Team (consisting of users 1 and 2)
* Midwest Team (consisting of users 3 and 4)

When using the following function in a dataset, members of each team will only see the rows that match the corresponding user attribute value in the **Region** column. That is, users 1 and 2 can see rows with the West Region value, and users 3 and 4 can see rows with the Midwest Region value.

`CurrentUserAttributeText(“Region Attribute”) = [Region]`

## Related resources

* [Configure user attributes](/docs/user-attributes)
* [Set up row-level security](/docs/set-up-row-level-security)