assign_role
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-11.)
assign_role has 51 facts recorded in Dontopedia across 3 references, with 11 live disagreements.
Mostly:calls method(4), execution order(4), has parameter(3)
Maturity scale
raw canonical shape-checked rule-derived certifiedInbound mentions (8)
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.
calledByCalled by(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
callsCalls(1)
- Keycloak Admin
ex:keycloak-admin
containsContains(1)
- Keycloak Management Script
ex:keycloak-management-script
hasSubActionHas Sub Action(1)
- Step 1
ex:step-1
usesFunctionUses Function(1)
- Step Two
ex:step-two
Other facts (49)
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 Method | Get User | [1] |
| Calls Method | Get Role | [1] |
| Calls Method | Get Client Roles of User | [1] |
| Calls Method | Assign Client Role | [1] |
| Execution Order | Get User Step | [1] |
| Execution Order | Get Role Step | [1] |
| Execution Order | Client Roles Check Step | [1] |
| Execution Order | Assign Role Step | [1] |
| Has Parameter | user_id | [1] |
| Has Parameter | role_name | [1] |
| Has Parameter | client_id | [1] |
| Has Conditional | User Check | [1] |
| Has Conditional | Role Check | [1] |
| Has Conditional | Client Roles Check | [1] |
| Validates | User Existence | [1] |
| Validates | Role Existence | [1] |
| Validates | Client Membership | [1] |
| Has Precondition | User Exists | [1] |
| Has Precondition | Role Exists | [1] |
| Has Precondition | User Belongs to Client | [1] |
| Has Documentation Comment | Assign a role to a user | [1] |
| Has Documentation Comment | Example usage | [1] |
| Has Documentation Comment | Get the realm | [1] |
| Rdf:type | Function | [1] |
| Rdf:type | Function | [3] |
| Produces Output | Success Message | [1] |
| Produces Output | Failure Message | [1] |
| Has Control Flow | Conditional Branching | [1] |
| Has Control Flow | Exception Handling | [1] |
| Takes Parameter | user_id | [2] |
| Takes Parameter | role_id | [2] |
| Has Try Block | Try Block | [1] |
| Has Except Block | Except Block | [1] |
| Prints on Success | Success Message | [1] |
| Prints on Failure | Failure Message | [1] |
| Language | Python | [1] |
| Purpose | Role assignment for client | [1] |
| Described by | Assign a role to a user | [1] |
| Catches | Exception | [1] |
| Returns | None | [1] |
| Inverse of | Role Assignment | [1] |
| Performs | Role Assignment | [1] |
| Part of | Keycloak Management Script | [1] |
| Scope | Client Role Assignment | [1] |
| Enforces | Client Boundary | [1] |
| Has Function Signature | assign_role(user_id, role_name, client_id) | [1] |
| Has Return Statement | None | [1] |
| Has Exception Handling | Except Block | [1] |
| Uses Variable | Realm | [1] |
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 (3)
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/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, …
ctx:claims/beam/119ca795-9a01-43e8-906d-f911ab3c8a6b- full textbeam-chunktext/plain1 KB
doc:beam/119ca795-9a01-43e8-906d-f911ab3c8a6bShow excerpt
sample_size = int(len(all_data) * 0.20) return random.sample(all_data, sample_size) elif "10-percent-access" in user_roles: sample_size = int(len(all_data) * 0.10) return random.sample(all_data, sample_si…
See also
- Function
- Get User
- Get Role
- Get Client Roles of User
- Assign Client Role
- Try Block
- Except Block
- Success Message
- Failure Message
- User Check
- Role Check
- Client Roles Check
- User Existence
- Role Existence
- Client Membership
- Get User Step
- Get Role Step
- Client Roles Check Step
- Assign Role Step
- User Exists
- Role Exists
- User Belongs to Client
- Exception
- Role Assignment
- Keycloak Management Script
- Client Role Assignment
- Client Boundary
- Realm
- Conditional Branching
- Exception Handling
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.