Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-4131

Group description missing on partial import [GHI#42851]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] 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

      import-export

      Describe the bug

      When importing one or multiple groups from a JSON using the partial import feature at Realm Settings > Action > Partial Import the group description specified in the JSON does not appear in the newly created group.

      Version

      26.3.4

      Regression

      [ ] The issue is a regression

      Expected behavior

      When importing one or more groups with a description attribute set, the resulting groups should have the respective description.

      Actual behavior

      The resulting groups have no description.

      How to Reproduce?

      Login to Admin Console
      Use a realm which has no group named "Test"
      Go to Realm settings
      Select Partial Import from the Dropdwon Menu in the top right corner
      Select Partial Import
      Paste the following JSON into the text field

      {"groups": [
      

      {
      "name": "Test",
      "description": "Foo",
      "path": "/Test",
      "subGroups": [],
      "attributes": {},
      "realmRoles": [],
      "clientRoles": {}
      }

        ]}
      

      Mark the checkbox 1 Groups
      Click Import
      Confirm the success message
      In the Admin Console navigate to Groups
      Find and click the newly created Group named "Test"
      Below the title of the group no description is displayed

      The following image displays the Partial Import Form
      <img width="835" height="576" alt="Image" src="https://github.com/user-attachments/assets/14f18309-1585-4450-9be8-65bccc8321f9" />

      The following image displays the missing group description
      <img width="673" height="204" alt="Image" src="https://github.com/user-attachments/assets/fcab3a7a-68bb-4fe2-992c-916677109aa0" />

      Anything else?

      No response

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak Core (shared)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: