WordPress.org

Make WordPress Core

Opened 2 weeks ago

Last modified 8 days ago

#52238 reopened defect (bug)

Missing option to change multiple users to "No role for this site"

Reported by: bonniebeeman Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.0
Component: Users Keywords: needs-patch good-first-bug
Focuses: administration Cc:

Description (last modified by sabernhardt)

It is often critical for the security of a WordPress site to change User roles en masse, but the option to change a user role to "No role for this site" is missing from WordPress User option dropdown list.

Attachments (1)

no role for this site - option missing.png (156.5 KB) - added by bonniebeeman 2 weeks ago.
Missing option to change user role to "no role for this user"

Download all attachments as: .zip

Change History (5)

@bonniebeeman
2 weeks ago

Missing option to change user role to "no role for this user"

#1 @sabernhardt
12 days ago

  • Component changed from General to Users
  • Description modified (diff)
  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi @bonniebeeman and welcome to Trac!

"None" or "No role for this site" must be a plugin option, as it is not one of the standard WordPress roles.

If that plugin is User Role Editor, you could request that they add it as an option to the Change role dropdown:
User Role Editor support forum

Right now with that plugin, though, you could select all Subscriber-level users and select Subscriber in the Revoke role dropdown. That changes users' role to "None" if the revoke role matches their previous role.

#2 @johnbillion
11 days ago

  • Keywords needs-patch added
  • Milestone set to Awaiting Review
  • Resolution invalid deleted
  • Status changed from closed to reopened

"No role for this site" is a core option, it's only available when editing a single user though. I don't see any reason for it not to be available as a bulk action on the Users screen.

#3 @sabernhardt
9 days ago

My mistake for not checking the Edit User screen. In addition to the bulk edit, would it be worth including this in the dropdown on the Add New User screen?

#4 @johnbillion
8 days ago

  • Keywords good-first-bug added
  • Severity changed from critical to normal
  • Version changed from 5.6 to 3.0
Note: See TracTickets for help on using tickets.