Browse Source

Fixed feature get user id.

hotfix/merge
Marcos Pereira 6 years ago
parent
commit
9da037c55d
  1. 4
      keycloak/keycloak_admin.py

4
keycloak/keycloak_admin.py

@ -181,8 +181,8 @@ class KeycloakAdmin:
:return: user_id :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) data_content = raise_error_from_response(data_raw, KeycloakGetError)
for user in data_content: for user in data_content:

Loading…
Cancel
Save