Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-9082

Can't get groups when realm id is different than name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 4.7.0.Final
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Steps to Reproduce:
      Hide
      1. Create a new realm through the cli without specify any `id` for the realm in the json /usr/local/keycloak/bin/kcadm.sh create realms -f realconfig.json
      2. or create a new realm then rename it
      3. It result in a realm with an ID different from the name, if you foud any other way to create a realm with an id different than the name it's fine
      4. Create a new user and save it
      5. Go to the edit user page
      6. Click the Groups tabs ( see screenshot )
      7. It also happen in the `Groups` menu in the left panel then tab `Default groups`
      Show
      Create a new realm through the cli without specify any `id` for the realm in the json /usr/local/keycloak/bin/kcadm.sh create realms -f realconfig.json or create a new realm then rename it It result in a realm with an ID different from the name, if you foud any other way to create a realm with an id different than the name it's fine Create a new user and save it Go to the edit user page Click the Groups tabs ( see screenshot ) It also happen in the `Groups` menu in the left panel then tab `Default groups`
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When you go on `Groups` tab in the user profil, an error occured

      It's happen when the realm ID is different than the realm name

      https://myserver.eu/auth/admin/realms/456d32c8-ea66-4611-b626-d4bd59dec97c/groups

      is called and result in a 404,

      https://myserver.eu/auth/admin/realms/myrealm/groups

      should be call

      4.6 is not affected, it's only since 4.7

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  cracky5457 Axel M
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: