---
schema_version: "1"
id: 4ee72c3f41e7f6f77f03f052767388dbdf9bb159f38329d884c26d9f5513c2f6
title: $UserRole
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/variables/pages-variables-global-userrole.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-variables-global-userrole.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 16a99c6fa884fd93b4134a01ca3ff0b8b23bf8cfe5a98f176a26bf3589c6b6fc
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# $UserRole

A global merge field type to use when referencing information about the current user’s role. Role merge fields can reference information such as role name, description, and ID.

## Usage

Use dot notation to access information about the current user’s role.

Note that you can’t use the following `$UserRole` values in Visualforce:

-   `CaseAccessForAccountOwner`
-   `ContactAccessForAccountOwner`
-   `OpportunityAccessForAccountOwner`
-   `PortalType`

## Example

```visualforce
{!$UserRole.LastModifiedById}
```

