Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a new role moderator and gave permission of just "Edit users with role authenticateduser" under Administer users by role permission.
The user is not able to cancel the administrator account at first (which is expected), but and moderator can block / unblock an user with role administrator.
Also, it could change the role of administrator accounts. By doing so they are able to cancel the account too.
Comment | File | Size | Author |
---|---|---|---|
Capture.PNG | 46.04 KB | AjitS |
Comments
Comment #1
gaele CreditAttribution: gaele commented#1717876: Remove dependency on 'Administer users' permission
Comment #2
gaele CreditAttribution: gaele commentedThis is the right one: #1670954: User who doesn't have edit permission can block/unblock any user