From fd0577c7303f2cfe2620fc06d3b037e3fb9d99aa Mon Sep 17 00:00:00 2001 From: Aarno Aukia Date: Thu, 21 Oct 2021 21:11:39 +0300 Subject: [PATCH] add_group needs a dict of GroupRepresentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index da88a9b..fa6c4a3 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,7 @@ keycloak_admin.delete_client_roles_of_user(client_id="client_id", user_id="user_ keycloak_admin.delete_client_roles_of_user(client_id="client_id", user_id="user_id", roles=[{"id": "role-id_1"}, {"id": "role-id_2"}]) # Create new group -group = keycloak_admin.create_group(name="Example Group") +group = keycloak_admin.create_group({"name": "Example Group"}) # Get all groups groups = keycloak_admin.get_groups()