RocketChat / RocketChat/Rocket.Chat

"All roles" option in Users role filter does not clear selected filters

Open
#41,516 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

When using the Role filter in Administration → Workspace → Users, clicking the "All roles" option does not perform any action.

After selecting one or more role filters, clicking "All roles" is expected to clear the active role filters and restore the default filter state. Instead, the selected roles remain active and the user list continues to be filtered.

Steps to reproduce:
  1. Go to Administration → Workspace → Users.
  2. Open the Role filter dropdown.
  3. Select one or more roles (e.g. Admin or Moderator).
  4. Click the "All roles" option.
Expected behavior:

Clicking "All roles" should:

  • Clear all selected role filters.
  • Reset the filter label to "All roles".
  • Display all users again.
  • Update the UI to indicate that no role filter is active.
Actual behavior:

Clicking "All roles" has no effect.

  • Previously selected roles remain selected.
  • The filter label does not change.
  • The user list remains filtered.
  • No visual feedback is provided.

https://github.com/user-attachments/assets/2752d3f0-d908-4db1-93b7-9a9ea3afd656

A screen recording demonstrating the issue is attached.

Server Setup Information:
  • Version of Rocket.Chat Server: 8.7.0-develop
  • License Type: Community
  • Number of Users: Test environment
  • Operating System: Ubuntu (WSL2)
  • Deployment Method: Local development
  • Number of Running Instances: 1
  • DB Replicaset Oplog: N/A
  • NodeJS Version: 22.22.1
  • MongoDB Version: 7.0.16
Client Setup Information
  • Desktop App or Browser Version: Google Chrome
  • Operating System: Windows 10
Additional context

The issue is consistently reproducible on the current develop branch.

No browser or server errors are observed when clicking "All roles".

Relevant logs:

No relevant server or browser errors were observed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Administration → Workspace → Users using the Role filter, then trace the entry point for the “All roles” option and its selected-filter state. Done means selecting roles and then “All roles” clears the selections, restores the label and user list, and visibly shows that no role filter is active.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.