Skip to content

Filtering Email doesn't work on Admin User Page #16554

@raphaeldas

Description

@raphaeldas

Bug report

Required System information

  • Node.js version: 16.19.1
  • NPM version: 9.6.4
  • Strapi version: 4.9.1
  • Database: Postgres 14.6
  • Operating system: Alpine Linux Docker
  • Is your project Javascript or Typescript: JS

Describe the bug

The filter parameter seems not to work for the Email field on the Admin Settings Page User. Is that intended? I noticed this, when I tried to create a custom read / update condition for a user, which also didn't worked.

Steps to reproduce the behavior

  1. In the Admin Pane go to Settings > Administration Panel > Users
    2a. Try to filter Users with Email ending in a certain domain.
    2b. or try to adjust the URL and include the filter parameter
  2. See that the filter gets ignored and all users get displayed

Demo URL: http://localhost:1337/admin/settings/users?pageSize=10&page=1&sort=firstname&filters[$and][0][email][$contains]=@some-domain.com

Expected behavior

I expact that this filter works on this page too. I have a use case were we mange the CMS for our client but the client has also accounts with lower permissions. They should add and manage their own set of users, so i want so filter out our own accounts.

Thanks for any suggestions!

Metadata

Metadata

Labels

issue: bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundsource: core:adminSource is core/admin packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersversion: 4Issue is present in Strapi v4version: 5Issue is present in Strapi 5

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions