Skip to content

Identity Provider Mappers - organization group targets do not resolve #52193

Closed

Description

@Tungsten78

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

organizations

Describe the bug

Mappers "Advanced Claim to Group", "Hardcoded Group" with groupType: ORGANIZATION does NOT work.

  • Whether target is root or a nested path has no impact

Switching the target to a realm group DOES work.

Version

26.7.2

Regression

  • The issue is a regression

Expected behavior

When mapper matches, user should be added to the organization group.

Actual behavior

The claim key/value matches, user is NOT added to the target organization group.

There is a log entry:

2026-08-28 19:12:03,632 WARN [org.keycloak.models.utils.KeycloakModelUtils]
Unable to find group by path '/rbac/cloud-admin'
referenced by mapper 'test-org-group' on realm 'vigil-identity'.

How to Reproduce?

Pre-requisite: Require Organization linked to an IDP

Steps:

  1. Create an Org Group as target, no members
  2. Add "Hardcoded Group", with FORCE
  3. Set group target to org group in 1
  4. Login as user in org, ensure routing through IDP

Anything else?

No response

Activity

  1. added
    kind/bug
    on Aug 28, 2026
  2. added theissue type on Aug 28, 2026
  3. added
    area/organizations
    on Aug 28, 2026
  4. Tungsten78 commented on Aug 28, 2026

    @Tungsten78
    ContributorAuthor

    @vramik - relates to #46735 and #45512

  5. vramik commented on Aug 31, 2026

    @vramik
    Contributor

    Thank you @Tungsten78 for the report. I am having hard time to reproduce it. Could you please confirm whether:

    • idp mapper belongs to idp linked the organization
    • organizations are enabled
    • group /rbac/cloud-admin exists in the organization
    • group mapper has correctly configured groupType: ORGANIZATION

    Thanks a lot

  6. self-assigned this
    on Aug 31, 2026
  7. keycloak-github-bot commented on Aug 31, 2026

    @keycloak-github-bot

    Thanks for reporting this issue, but there is insufficient information or lack of steps to reproduce.

    Please provide additional details, otherwise this issue will be automatically closed within 14 days.

  8. Tungsten78 commented on Aug 31, 2026

    @Tungsten78
    ContributorAuthor

    @vramik

    Could you please confirm whether:
    idp mapper belongs to idp linked the organization
    organizations are enabled
    group /rbac/cloud-admin exists in the organization
    group mapper has correctly configured groupType: ORGANIZATION

    Yes, all true.

    We have a dozen or so organizations.

    The mapper UI was used to create the mapper, it rendered the list of org groups and selection. This proves the first 3 are correct. Also, I’ve confirmed in the persisted model that the group type is ORG.

  9. 26 remaining items

  10. added a commit that references this issue on Sep 16, 2026
    b653c30
  11. added a commit that references this issue on Sep 16, 2026
    82e3169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Fields

No fields configured for bug.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions