From 659f5e51b66ab3f920354e88dbf2079128885d0d Mon Sep 17 00:00:00 2001 From: Simone Ferrigno Date: Thu, 3 Aug 2023 19:06:52 +0200 Subject: [PATCH] docs: update readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 3507448..7addd26 100644 --- a/README.md +++ b/README.md @@ -350,6 +350,18 @@ keycloak_admin.realm_name = "demo" # Change realm to 'demo' keycloak_admin.get_users() # Get users in realm 'demo' keycloak_admin.create_user(...) # Creates a new user in 'demo' +# Get User events +keycloak_admin.get_events(query={'type': 'LOGIN', + 'user': user['id'], + 'dateFrom': '2023-08-02'}) + +# Get Admin events +keycloak_admin.get_admin_events(query={'resourceTypes': 'USER', + 'operationTypes': 'UPDATE', + 'resourcePath': 'users/' + user['id'], + 'dateFrom': '2023-08-02' + }) + # KEYCLOAK UMA from keycloak import KeycloakOpenIDConnection