Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Display role

Security covered Under active development 93 sites

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.
Drupal 9–11

Ask your assistant about Display role

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
5
Tracked since
Jul 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP 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
8.x-1.1 Stable 8–10 Jul 17, 2023
8.x-1.0 Stable 8–10 Jul 17, 2023