8000 User-API: User search parameter to include/exclude service accounts · Issue #48031 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

User-API: User search parameter to include/exclude service accounts #48031

Description

@resah

Description

We are using the REST API extensively and need more control over including/excluding service-accounts.

To prevent breaking the API, we could add an Optional parameter, which still provides the default/legacy behavior, if it is null.

Value Proposition

This provides deterministic results regarding service-account inclusion/exclusion independent from old implementation, which made sense for the use cases at the time.

It offers also more flexibility for future usage, like separate administration areas fur user accounts and service account (which is considered in some discussions as far as I am aware).

Goals

A new parameter to explicitly include/exclude service accounts.

Non-Goals

Change existing behavior.

Discussion

No response

Notes

Possibly related issues/discussions:

I am planning to provide a pull request for this.

Activity

  1. added
    area/admin/apiAdmin REST API (v1) — managing realms, users, clients, roles, groups
    on Apr 22, 2026
  2. ZhenggangRen-Web commented on Aug 18, 2026

    @ZhenggangRen-Web

    this looks good, when use q param, will filter the service account user defaultly if matched the keyword.

  3. added a commit that references this issue on Aug 31, 2026
    c682da1
  4. moved this from Backlog to In progress in Keycloak Roadmapon Sep 10, 2026
  5. JoHeinem commented on Oct 21, 2026

    @JoHeinem

    Hi @stianst , sorry for the direct ping. We (UP42) also rely heavily on the Admin REST API and would really benefit from an explicit include/exclude flag for service accounts in user search, since right now we have to filter them out ourselves. The PR (keycloak/keycloak#48033) has been ready with green CI since end of August but hasn’t been triaged yet. Is this something you’d accept for the current Admin API? Happy to help test or adjust the PR either way.

  6. added 2 commits that reference this issue on Nov 12, 2026
    baa3958
    1492122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    Value

    None yet

    Effort

    None yet

    Votes

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0