User permission handling

Created on 27 November 2014, over 9 years ago
Updated 19 September 2023, 9 months ago

Problem/Motivation

By default in Drupal core, user permissions are not exported separately but rather are bundled with user roles; each role is exported with all the permissions it contains.

This bundling is a barrier for generating independent and interoperable features. For example, a user role 'contributor' might need permissions for various content types, each of which should be in a separate feature.

Proposed resolution

EDIT: If you are reading this and want permissions to not be stripped out. It is now a configuration setting. Features > Configure Bundles (tab) > Alter (Configure Operation) > Uncheck "Strip out user permissions." This was fixed in #2599278: Move export processing to a configurable plugin β†’ .

  • Short term: on export, strip out all permissions from the user role. Done.
  • Longer term: work on independent export of user permissions. This likely falls into the general problem area of configuration overrides, so requires a solution for overrides. Actually supporting overrides may be out of scope for Features, but once such a solution were in place we could export in its supported format.

Remaining tasks

User interface changes

API changes

πŸ“Œ Task
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada nedjo

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024