Browse Source

Remove unused client_id from delete_realm_roles_of users

pull/201/head
Joerg Schaarschmidt 3 years ago
parent
commit
93b9991dc8
  1. 2
      docs/source/index.rst
  2. 3
      keycloak/keycloak_admin.py

2
docs/source/index.rst

@ -263,7 +263,7 @@ Main methods::
keycloak_admin.assign_realm_roles(client_id="client_id", user_id="user_id", roles=[{"roles_representation"}])
# Delete realm roles of user. Note that BOTH role_name and role_id appear to be required.
keycloak_admin.deletes_realm_roles_of_user(client_id="client_id", user_id="user_id", roles=[{"roles_representation"}])
keycloak_admin.deletes_realm_roles_of_user(user_id="user_id", roles=[{"roles_representation"}])
# Create new group
group = keycloak_admin.create_group(name="Example Group")

3
keycloak/keycloak_admin.py

@ -1189,12 +1189,11 @@ class KeycloakAdmin:
data=json.dumps(payload))
return raise_error_from_response(data_raw, KeycloakGetError, expected_codes=[204])
def delete_realm_roles_of_user(self, user_id, client_id, roles):
def delete_realm_roles_of_user(self, user_id, roles):
"""
Deletes realm roles of a user
:param user_id: id of user
:param client_id: id of client containing role (not client-id)
:param roles: roles list or role (use RoleRepresentation)
:return Keycloak server response
"""

Loading…
Cancel
Save