Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

User Admin API: Ability to exclude user types #15720

@weeman1337

Description

@weeman1337

Story

As an admin I want to be able to exclude user types when fetching the user list from the admin API,
so that I can exclude bot or service users.

Proposal

Add a new query param not_user_types to GET /_synapse/admin/v2/users: user type to exclude. Can be provided multiple times. Returns only users, that do not match any of them. "empty string" should be possible to exclude users without a type.

The design is similar to https://spec.matrix.org/v1.7/client-server-api/#get_matrixclientv3useruseridfilterfilterid

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Admin-APIO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MinorBlocks non-critical functionality, workarounds exist.T-EnhancementNew features, changes in functionality, improvements in performance, or user-facing enhancements.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions