From 9da037c55daf42e2f45ff9f5c003e332abaf7f02 Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Sun, 5 Aug 2018 14:27:35 -0300 Subject: [PATCH] Fixed feature get user id. --- keycloak/keycloak_admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keycloak/keycloak_admin.py b/keycloak/keycloak_admin.py index 7727e72..c9718f5 100644 --- a/keycloak/keycloak_admin.py +++ b/keycloak/keycloak_admin.py @@ -181,8 +181,8 @@ class KeycloakAdmin: :return: user_id """ - params_path = {"realm-name": self.realm_name, "username": username} - data_raw = self.connection.raw_get(URL_ADMIN_USERS.format(**params_path)) + + data_raw = self.get_users(query={"username": username}) data_content = raise_error_from_response(data_raw, KeycloakGetError) for user in data_content: