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

Query users by 'LDAP_ID' is not working [GHI#22436]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [X] I have searched existing issues
      [ ] I have reproduced the issue with the latest nightly release

      Area

      user-profile

      Describe the bug

      Quering for users using their attribute LDAP_ID with the endpoint {{GET /

      {realm}/users}} results in an empty array response instead of the users data.

      h3. Version

      20.0.2

      h3. Expected behavior

      The user data of the user with the matching LDAP_ID is returned.

      h3. Actual behavior

      An empty array is returned.

      h3. How to Reproduce?

      Configure ActiveDirectory as user federation (LDAP) with Import users turned off.
      Query for a specific user using their LDAP_ID as part of the q parameter when calling the {{GET /{realm}

      /users}} endpoint.

      Example:
      https://keycloak-url/auth/admin/realms/portal/users?q=LDAP_ID:b42670b4-38e9-4e11-8a3f-fb7288937fbb

      Response:
      []

      !image

      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: