Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Display role

97 sites Security covered Drupal 9–11
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.

Depends on

Dependencies of the latest stable release

  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Apr 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

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