Skip to content

Add option for additional user statuses #7123

@stpaultim

Description

@stpaultim

Description of the need

Core comes with only two possible user statuses.

  1. Active
  2. Blocked

The question was rasied in Zulip recently whether or not this is too limiting. There may be situations in which a user is no longer active, but for which "blocked" is too strong a label. In the Drupal issue queue, someone asked about the following examples.

  • Unverified: user has not verified email;
  • Inactive: user has not logged in, but is verified;
  • Active: email verified and user logged in at least once;
  • Suspended: a temporary number of days being blocked from access.
  • Banned: mod or admin permanently blocked user.
  • Blocked: an automated system blocked user.

https://www.drupal.org/project/drupal/issues/3225766

Proposed solution

Either add an additional status or make it easier for site architects to create customizable statuses. If we added a status, I think it may be difficult to decide which one. For me the most obvious would be something like "inactive". Something in between "Active" and "Blocked."

The ability to add custom statuses would be more flexible and address a greater range of use cases, but obviously adds complexity.

Alternatives that have been considered

I suspect that many situations in which additional statuses might be useful are currently addressed through the use of roles. Maybe that is good enough?

Is there a Drupal or Backdrop contributed module that accomplishes this?
...if so, then please provide a link.

In the Drupal issue queue, this module is mentioned as a solution. But, I have honestly not thought about it long enough to know if how this modules solves the problem.

https://www.drupal.org/project/state_machine

Additional information

Image

I'm opening this issue without any urgency attached to the issue. I just think it's an interesting question and one worth discussing.

Draft of feature description for Press Release (1 paragraph at most)

Backdrop now includes the ability for user accounts with more than just two possible statuses, blocked or active. We now have the ability for finer grained states or statuses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions