Unistall deprecated Actions UI removes Administrator role

Created on 9 May 2025, about 1 month ago

My 10.4.7 drupal shows in status:

Deprecated modules installed Deprecated modules found: Actions UI.

There is this contributed module https://www.drupal.org/project/action but it's not covered by security updates.

In advance trying to uninstall Actions UI, I get:

The listed configuration will be deleted.
Action
    Add the Administrator role to the selected user(s)
    Remove the Administrator role from the selected user(s)

Role
    Administrator

If I continue, Admin role is deleted and I loose access to site.

I do not believe this is ok, and I can't remember doing anything with this module.

🐛 Bug report
Status

Active

Version

10.4

Component

base system

Created by

🇬🇷Greece bilias

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

Comments & Activities

  • Issue created by @bilias
  • This doesn't happen in a newly-setup Drupal site. Has this site been upgraded through many versions?

    Could you dump the configuration for the action module and the user module?

  • 🇬🇷Greece bilias

    Yes, this is old installation of drupal 7 -> migrated to 9 > upgraded to 10

    Can't remember how I did 7 -> 9

    How exactly can I get the specific configuration you ask for?
    I did drush config:export but I have many files system.action.*

    thanks

  • 🇬🇷Greece bilias

    ok, I've managed to solve this.
    My user.role.administrator had inside

    dependencies:
    config:
    - node.type.article
    - node.type.page
    module:
    - block
    - contact
    - contextual
    - filter
    - image
    - language
    - node
    - path
    - shortcut
    - system
    - taxonomy
    - views_ui

    and
    permissions:
    - 'access administration pages'
    - 'access content'
    - 'access content overview'
    - 'access contextual links'
    - 'access site in maintenance mode'
    - 'access site reports'
    - 'access site-wide contact form'
    - 'access user contact forms'
    - 'access user profiles'
    ...

    I've tried to config:import a yml with
    dependencies: { }
    permissions: { }

    I couldn't because I had old left-over configurations from theme (mostly) that didn't exist any more.
    I've manually deleted the failing config items and then I was able to do a partial import of user.role.administrator

    After that I was able to remove actions UI without deleting the admin role

Production build 0.71.5 2024