Module Description
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.
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.
Module Link
Project Usage
105
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to easily display users' assigned roles on their profile pages for site administrators to configure and manage.
Data Name
displayrole