NokiaTube | New address | Mode Phone | Off high quality for Nokia Browser
Skip to content

Preserve organization group descriptions when importing a realm - #55600

Open
Praiztl wants to merge 3 commits into
keycloak:mainfrom
Praiztl:fix/55134-org-group-description-import
Open

Praiztl wants to merge 3 commits into
keycloak:mainfrom
Praiztl:fix/55134-org-group-description-import

Conversation

@Praiztl

@Praiztl Praiztl commented Nov 26, 2026 •

Copy link
Copy Markdown

Closes #55134
Organization group import copied attributes, roles and subgroups but not the group description, unlike the regular group import.

Decisions and assumptions: the test asserts round-tripping for top-level organization groups, matching the issue. Subgroup descriptions are dropped earlier, when the subgroup is created (#55599), so they are out of scope here.

Developed with the assistance of an AI agent.

@Praiztl
Praiztl marked this pull request as ready for review November 27, 2026 10:52
@Praiztl
Praiztl requested review from a team as code owners November 27, 2026 10:52
Copilot AI balanced review requested due to automatic review settings November 27, 2026 10:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the change preserving organization group descriptions during realm import.

No open issues 🎉

What changed in this PR

Fixes #55134 by preserving organization group descriptions during realm import, matching regular group import behavior. Subgroup creation’s separate description-loss issue (#55599) remains out of scope.

Changes:

  • Copy non-null descriptions from organization group representations to imported groups.
  • Extend existing export/import tests with descriptions and assertions for top-level organization groups.
File Description
testsuite/​integration-arquillian/​tests/​base/​src/​test/​java/​org/​keycloak/​testsuite/​organization/​exportimport/​OrganizationExportTest.java Adds description fixtures and preservation assertions.
model/​storage-private/​src/​main/​java/​org/​keycloak/​storage/​datastore/​DefaultExportImportManager.java Restores organization group descriptions during import.

Review effort: Balanced

@stianst stianst added the kind/bug Categorizes a PR related to a bug label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes a PR related to a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating a realm from a representation drops the description of organization groups

3 participants