Display machine name for the permissions

Created on 9 January 2024, 6 months ago

Problem/Motivation

1. On the permissions page admin/people/permissions currently, permission titleis displayed.

2. It clearly shows from which module is responsible for the permission.

3. However sometimes mostly developers also need to see the machine name for the permission for that currently they have to go through the code to just see the machine name of that particular permission.

It would be nice to have the machine name displayed as well under the permissiontitleitself.
For other stuff like fields, content types, image styles etc. we can easily see the machine name on the screen itself or at-least in the URL.

I am not able to think of any particular use case for this but just as an helper thing to identify the permission's internal/machine name faster and from the user interface itself.

Steps to reproduce

1. Login as administrator user or a user which has access to permissions page.
2. Go to /admin/people/permissions
3. Now on this page to see the machine name of that permission you need to explore the codebase. For example :

Machine name for the permission

Administer roles and permissions
Warning: Give to trusted roles only; this permission has security implications.

is administer permissions and it is written in core/modules/user/user.permissions.yml

Proposed resolution

Display machine name of the permission under permission title on permissions page /admin/people/permissions

Remaining tasks

Implementation and testing.

User interface changes

Display machine name text.
Screenshot from the changes made locally:

API changes

NA

Data model changes

NA

Release notes snippet

TBD

✨ Feature request
Status

Closed: duplicate

Version

11.0 🔥

Component
User module  →

Last updated about 3 hours ago

Created by

🇮🇳India Prashant.c Dharamshala

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024