Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Display role

97 sites Security covered
View on drupal.org

This module allows you to easily display a user's assigned roles on their profile page. You can configure which roles to show through the user profile display settings.

Easily show users' assigned role or roles on their profile pages by using this module.

Features:

It makes a list of user roles available for site administrators to choose to show as one of the display fields available on user profiles.

Configuration:

Enable the module and go to People » Account settings » Manage display and drag "Roles" to where you would like it to display relative to the order of other items, like "Picture" and "Member for", available on this form that, as it explains, "lets administrators configure how fields should be displayed when rendering a user profile page."

User roles are therefore also available in the user profile template (user.html.twig) without having to write a preprocess function in the theme or a module.

Right now it displays a list of all roles that user has but it can and probably should be made more configurable.

Installation

Install as you would normally install a contributed Drupal module.
For Drupal 8, the recommended way to install this module is via Composer.

This is a Drupal 8 only module with no plans to backport (it shouldn't be hard, though; volunteers always welcome).

🇺🇦

This module is maintained by Ukrainian developers.
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.

Activity

Total releases
3
First release
Apr 2025
Latest release
11 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
2.0.x-dev Dev Aug 15, 2025
8.x-1.3 Stable Aug 15, 2025
8.x-1.2 Stable Apr 8, 2025