Unable to impersonate user on Red Hat build of Keycloak: "Error response Forbidden: jakarta.ws.rs.ForbiddenException: HTTP 403 Forbidden"

Solution Verified - Updated -

Issue

  • When trying to impersonate a user, the error 403 Forbidden is displayed

    2025-05-22 08:55:06,176 DEBUG [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-9) Error response Forbidden: jakarta.ws.rs.ForbiddenException: HTTP 403 Forbidden
    at org.keycloak.services.managers.Auth.requireOneOf(Auth.java:92)
    at org.keycloak.services.resources.account.AccountRestService.account(AccountRestService.java:134)
    

Environment

  • Red Hat build of Keycloak

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content