KeycloakAdmin
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-11.)
KeycloakAdmin has 112 facts recorded in Dontopedia across 16 references, with 19 live disagreements.
Mostly:rdf:type(14), calls(5), has parameter(4)
Maturity scale
raw canonical shape-checked rule-derived certifiedRdf:typein disputerdf:type
- Administration Interface[2]all time · 3322a330 15f4 4948 9bb7 C8f18f1e3338
- Admin Client[3]all time · 1010326c 1505 46b7 835e 334a563183f7
- Administration Client[4]all time · 52e7761c C511 45a7 873e 844c6f2bb92b
- Keycloak Admin[5]sourceall time · 86abba02 Beaa 44c5 876c B8b056fb9252
- Keycloak Admin[7]all time · 7646fe36 4a34 4e09 B5b8 B96aa46b4805
- Keycloak Administration Client[8]all time · B0c69968 148d 412a 8238 E75eb88b5ed2
- Admin Client[9]all time · C5fc740c 9e4a 4d28 B4a1 A8b721b19995
- Software Component[10]all time · E2fdff7e 911f 44dd 950f 440f0dafe12f
- Administration Object[11]all time · Bdd8566d 5cef 46a6 97f1 F27f14b189f8
- Keycloak Administration[11]all time · Bdd8566d 5cef 46a6 97f1 F27f14b189f8
Inbound mentions (30)
Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.
createdByCreated by(4)
- Full Access Role
ex:full-access-role - Limited Access Role
ex:limited-access-role - Sparse Data Access Role
ex:sparse-data-access-role - View Sparse Data Permission
ex:view-sparse-data-permission
memberOfMember of(4)
- Assign Client Role
ex:assign-client-role - Get Client Roles of User
ex:get-client-roles-of-user - Get Role
ex:get-role - Get User
ex:get-user
assignedByAssigned by(2)
- Full Access Role
ex:full-access-role - Limited Access Role
ex:limited-access-role
callsCalls(2)
- Get Role Call
ex:get-role-call - Get User Call
ex:get-user-call
isRequiredForIs Required for(2)
- Credentials
ex:credentials - Realm Name
ex:realm-name
assignedRoleByAssigned Role by(1)
- User
ex:user
assignedValueAssigned Value(1)
- Realm
ex:realm
containsComponentContains Component(1)
- Keycloak Library
ex:keycloak-library
containsInitializationContains Initialization(1)
- Keycloak Code Snippet
ex:keycloak-code-snippet
initializesInitializes(1)
- Keycloak Admin Init Code
ex:keycloak-admin-init-code
isAccessedByIs Accessed by(1)
- Realm Object
ex:realm-object
isAttributeOfIs Attribute of(1)
- Realm
ex:realm
isAuthenticatedByIs Authenticated by(1)
- Keycloak Server
ex:keycloak-server
isMethodOfIs Method of(1)
- Assign Client Role
ex:assign_client_role
isObtainedFromIs Obtained From(1)
- Realm
ex:realm
isUsedByIs Used by(1)
- Server Configuration
ex:server-configuration
isUsedForIs Used for(1)
- Server Configuration
ex:server-configuration
performedByPerformed by(1)
- Permission Assignment
ex:permission-assignment
requiresRequires(1)
- Assign Role
ex:assign_role
sharedByShared by(1)
- My Realm
ex:my-realm
usedByUsed by(1)
- My Client Id
ex:my-client-id
Other facts (92)
The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.
| Predicate | Value | Ref |
|---|---|---|
| Calls | Realm Update Function | [2] |
| Calls | Caching Configuration Function | [2] |
| Calls | Session Clustering Function | [2] |
| Calls | Assign Role Method | [15] |
| Calls | Assign Role | [16] |
| Has Parameter | server_url | [5] |
| Has Parameter | username | [5] |
| Has Parameter | password | [5] |
| Has Parameter | realm_name | [5] |
| Initialized With | My Keycloak Server.com | [5] |
| Initialized With | admin | [5] |
| Initialized With | password | [5] |
| Initialized With | my-realm | [5] |
| Has Attribute | password | [7] |
| Has Attribute | realm_name | [7] |
| Has Attribute | Realm | [9] |
| Has Attribute | realm_name | [11] |
| Has Method | create_role | [7] |
| Has Method | Get User Call | [9] |
| Has Method | Get Role Call | [9] |
| Has Method | Assign Client Role Method | [9] |
| Constructor Arg | server_url | [13] |
| Constructor Arg | username | [13] |
| Constructor Arg | password | [13] |
| Constructor Arg | realm_name | [13] |
| Method | update_realm | [1] |
| Method | set_caches | [1] |
| Method | set_sessions | [1] |
| Requires | Credentials | [10] |
| Requires | Realm Name | [10] |
| Requires | Server Url | [13] |
| Performs Action | Get User | [3] |
| Performs Action | Assign Client Role | [3] |
| Calls Create Role | Sparse Data Access Role | [4] |
| Calls Create Role | Create Role Function | [7] |
| Calls Function | create_role | [5] |
| Calls Function | assign_client_role | [5] |
| Connects to | Keycloak Server | [5] |
| Connects to | Keycloak Server | [8] |
| Created Role | Full Tuning Data Access | [6] |
| Created Role | Limited Tuning Data Access | [6] |
| Assigned Role to User | Full Tuning Data Access | [6] |
| Assigned Role to User | Limited Tuning Data Access | [6] |
| Has Server Url | My Keycloak Server.com | [8] |
| Has Server Url | My Keycloak Server.com | [13] |
| Has Username | admin | [8] |
| Has Username | my-username | [13] |
| Purpose | Initialize Keycloak admin client | [12] |
| Purpose | role management | [13] |
| Create Role | Full Access Role | [13] |
| Create Role | Limited Access Role | [13] |
| Manages | Roles | [13] |
| Manages | User Role Assignments | [13] |
| First Action | Get User | [3] |
| Second Action | Assign Client Role | [3] |
| Configured With | Keycloak Admin Config | [4] |
| Calls Create Permission | View Sparse Data Permission | [4] |
| Calls Assign Permission to Role | Permission Assignment | [4] |
| Has Variable Name | keycloak_admin | [5] |
| Configured for Realm | My Realm | [5] |
| Has Password Value | password | [7] |
| Has Realm Name Value | my-realm | [7] |
| Gets Realm | Realm Object | [7] |
| Assigns Realm Name | Realm Object | [7] |
| Creates Role | Expanded Data Access Role | [7] |
| Instantiates | Keycloak Admin Class | [7] |
| Provides | Admin Interface | [7] |
| Authenticates to | Keycloak Server | [8] |
| Uses Configuration | Server Configuration | [9] |
| Is Software Client | true | [10] |
| Has Password | my-password | [13] |
| Has Realm Name | my-realm | [13] |
| Instantiated by | Code Segment | [13] |
| Assign Role | User | [13] |
| Belongs to Many | My Realm | [13] |
| Shares Server Url With | Keycloak Openid | [13] |
| Shares Realm With | Keycloak Openid | [13] |
| Has Role Creation Method | create_role | [13] |
| Has Role Assignment Method | assign_role | [13] |
| Variable Name | keycloak_admin | [13] |
| Instantiate Before | Keycloak Openid | [13] |
| Administrative Interface | My Realm | [13] |
| Credentials Type | username-password | [13] |
| Separated From | Keycloak Openid | [13] |
| Constructor Call | KeycloakAdmin(...) | [13] |
| Server Url Literal | My Keycloak Server.com | [13] |
| Username Literal | my-username | [13] |
| Password Literal | my-password | [13] |
| Realm Name Literal | my-realm | [13] |
| Import Statement | from keycloak import KeycloakAdmin | [14] |
| Used in | python-code | [14] |
| Class of | KeycloakAdmin | [14] |
Timeline
Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.
References (16)
ctx:claims/beam/c0e4ac54-1ffe-440d-a852-51854210cc39- full textbeam-chunktext/plain1 KB
doc:beam/c0e4ac54-1ffe-440d-a852-51854210cc39Show excerpt
realm["offlineSessionIdleTimeout"] = 43200 # Online Session Max Lifespan (seconds) # Update realm settings keycloak_admin.update_realm(realm=realm) # Update cache settings keycloak_admin.set_caches( realm_name="example-realm", us…
ctx:claims/beam/3322a330-15f4-4948-9bb7-c8f18f1e3338- full textbeam-chunktext/plain1002 B
doc:beam/3322a330-15f4-4948-9bb7-c8f18f1e3338Show excerpt
realm["onlineSessionMaxLifespan"] = 43200 # Online Session Max Lifespan (seconds) # Update realm settings keycloak_admin.update_realm(realm=realm) # Enable caching keycloak_admin.set_caches( realm_name="example-realm", user_cache…
ctx:claims/beam/1010326c-1505-46b7-835e-334a563183f7- full textbeam-chunktext/plain1 KB
doc:beam/1010326c-1505-46b7-835e-334a563183f7Show excerpt
user = keycloak_admin.get_user(user_id) # Assign the role to the user keycloak_admin.assign_client_role(client_id="my-client-id", user_id=user_id, role_name="sensitive-sco…
ctx:claims/beam/52e7761c-c511-45a7-873e-844c6f2bb92b- full textbeam-chunktext/plain1 KB
doc:beam/52e7761c-c511-45a7-873e-844c6f2bb92bShow excerpt
username="my-username", password="my-password", realm_name="my-realm") # Define the role role = keycloak_admin.create_role(name="sparse-data-acces…
ctx:claims/beam/86abba02-beaa-44c5-876c-b8b056fb9252- full textbeam-chunktext/plain1 KB
doc:beam/86abba02-beaa-44c5-876c-b8b056fb9252Show excerpt
from keycloak import KeycloakAdmin # Initialize Keycloak admin client keycloak_admin = KeycloakAdmin(server_url="https://my-keycloak-server.com", username="admin", password="pas…
ctx:claims/beam/52b3e766-7ad7-45cb-9150-74ab951da301- full textbeam-chunktext/plain1 KB
doc:beam/52b3e766-7ad7-45cb-9150-74ab951da301Show excerpt
full_access_role = keycloak_admin.create_role({"name": "full-tuning-data-access"}) limited_access_role = keycloak_admin.create_role({"name": "limited-tuning-data-access"}) ``` ### Step 2: Assign Roles to Users Next, assign the roles to th…
ctx:claims/beam/7646fe36-4a34-4e09-b5b8-b96aa46b4805- full textbeam-chunktext/plain1 KB
doc:beam/7646fe36-4a34-4e09-b5b8-b96aa46b4805Show excerpt
password="password", realm_name="my-realm" ) # Get the realm realm = keycloak_admin.realm_name # Create a new role role = keycloak_admin.create_role( realm, "expanded-data-access", ["view", "edit"] ) # Limit exposure …
ctx:claims/beam/b0c69968-148d-412a-8238-e75eb88b5ed2- full textbeam-chunktext/plain1 KB
doc:beam/b0c69968-148d-412a-8238-e75eb88b5ed2Show excerpt
print(f"Time to index 1000 documents: {end_time - start_time:.2f} seconds") # Run queries start_time = time.time() for doc in test_data: response = es.search(index='synonyms', body={ 'query': { 'match': { …
ctx:claims/beam/c5fc740c-9e4a-4d28-b4a1-a8b721b19995- full textbeam-chunktext/plain1 KB
doc:beam/c5fc740c-9e4a-4d28-b4a1-a8b721b19995Show excerpt
server_url="https://my-keycloak-server.com", username="admin", password="password", realm_name="my-realm" ) # Get the realm realm = keycloak_admin.realm_name # Assign a role to a user def assign_role(user_id, role_name): …
ctx:claims/beam/e2fdff7e-911f-44dd-950f-440f0dafe12f- full textbeam-chunktext/plain1 KB
doc:beam/e2fdff7e-911f-44dd-950f-440f0dafe12fShow excerpt
role_name = "expanded-data-access" client_id = "account" # Replace with the actual client ID assign_role(user_id, role_name, client_id) ``` ### Explanation 1. **Initialize Keycloak Admin**: - Initialize the Keycloak admin client with…
ctx:claims/beam/bdd8566d-5cef-46a6-97f1-f27f14b189f8- full textbeam-chunktext/plain1 KB
doc:beam/bdd8566d-5cef-46a6-97f1-f27f14b189f8Show excerpt
# Get the realm realm = keycloak_admin.realm_name # Assign a role to a user def assign_role(user_id, role_name, client_id): try: # Get the user user = keycloak_admin.get_user(user_id) if not user: ra…
ctx:claims/beam/bf8134fc-dae0-4408-a38e-6c0dcaaefede- full textbeam-chunktext/plain1 KB
doc:beam/bf8134fc-dae0-4408-a38e-6c0dcaaefedeShow excerpt
How can I modify this code to limit the exposure to only 2% of the tokenized data? ->-> 5,16 [Turn 10789] Assistant: To limit exposure to only 2% of the tokenized data using Keycloak roles, you need to implement a combination of role-based…
ctx:claims/beam/b875b17c-37fb-4d50-9528-458c18ad7607- full textbeam-chunktext/plain1 KB
doc:beam/b875b17c-37fb-4d50-9528-458c18ad7607Show excerpt
keycloak_admin = KeycloakAdmin(server_url="https://my-keycloak-server.com", username="my-username", password="my-password", realm_name="my-realm") …
ctx:claims/beam/fca11d63-977d-4845-9c1f-1d772a90c3cdctx:claims/beam/f216d1ac-3f4a-4b43-b90a-ffab517cb825- full textbeam-chunktext/plain1 KB
doc:beam/f216d1ac-3f4a-4b43-b90a-ffab517cb825Show excerpt
Next, assign the appropriate roles to users based on their access level. ```python # Assign roles to users user_id = "my-user-id" # Assign full access role keycloak_admin.assign_role(user_id=user_id, role_id=full_access_role["id"]) # Ass…
ctx:claims/beam/a2f49980-b56e-4c2f-9c1b-b7bc5b04f677- full textbeam-chunktext/plain1 KB
doc:beam/a2f49980-b56e-4c2f-9c1b-b7bc5b04f677Show excerpt
keycloak_admin.assign_role(user_id=user_id, role_id=full_access_role["id"]) ``` ### Step 3: Implement Data Filtering Logic When fetching data, check the user's role and filter the data accordingly. For users with different access levels, …
See also
- Realm Update Function
- Caching Configuration Function
- Session Clustering Function
- Administration Interface
- Admin Client
- Get User
- Assign Client Role
- Administration Client
- Keycloak Admin Config
- Sparse Data Access Role
- View Sparse Data Permission
- Permission Assignment
- Keycloak Admin
- My Keycloak Server.com
- Keycloak Server
- My Realm
- Full Tuning Data Access
- Limited Tuning Data Access
- Realm Object
- Expanded Data Access Role
- Create Role Function
- Keycloak Admin Class
- Admin Interface
- Keycloak Administration Client
- Get User Call
- Get Role Call
- Assign Client Role Method
- Server Configuration
- Realm
- Software Component
- Credentials
- Realm Name
- Administration Object
- Keycloak Administration
- Client Class
- Code Segment
- Full Access Role
- Limited Access Role
- User
- Keycloak Openid
- Roles
- User Role Assignments
- Server Url
- Python Library
- Assign Role Method
- Assign Role
Keep researching
Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.