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

Attributes missing in OrganizationRepresentation when using Admin REST API in Keycloak 26 [GHI#34590]

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

      admin/api

      Describe the bug

      After upgrading from Keycloak 25.0.6 to Keycloak 26.0.5 the attributes for the OrganizationRepresentation are missing when using the Admin REST API.

      Version

      26.0.5

      Regression

      [X] The issue is a regression

      Expected behavior

      OrganizationRepresentation in Keycloak 26 should contain attributes when using Admin REST API.

      Actual behavior

      When using Keycloak 25 the Admin REST API the OrganizationRepresentation when calling the endpoint {{/admin/realms/

      {realm}/organizations}} looks like the following example:

      ```
      [
      {
          "id": "dca0ec5a-3440-476d-b41e-91730e8b2da9",
          "name": "test-01",
          "enabled": true,
          "description": "test-01",
          "attributes": {
              "custom-attribute": [
                  "My Test Organization"
              ]
          },
          "domains": [
              {
                  "name": "test-01.org",
                  "verified": false
              }
          ]
      }
      

      ]
      ```

      After an upgrade to any Keycloak 26.0.X version the response for the same request looks like this:
      ```
      [
      {
          "id": "dca0ec5a-3440-476d-b41e-91730e8b2da9",
          "name": "test-01",
          "alias": "test-01",
          "enabled": true,
          "description": "test-01",
          "domains": [
              {
                  "name": "test-01.org",
                  "verified": false
              }
          ]
      }
      

      ]
      ```

      h3. How to Reproduce?

      - Running Keycloak in version 25.0.6
      - Creating an organization with some attributes in the Admin UI
      - Upgrading to Keycloak 26.0.5
      - Calling {{/admin/realms/{realm}

      /organizations}} endpoint

      Anything else?

      No response

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

                Created:
                Updated:
                Resolved: