Dontopedia

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.

51 facts·29 predicates·3 sources·11 in dispute

Mostly:calls method(4), execution order(4), has parameter(3)

Maturity scale raw canonical shape-checked rule-derived certified

Inbound 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)

callsCalls(1)

containsContains(1)

hasSubActionHas Sub Action(1)

usesFunctionUses Function(1)

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.

49 facts
PredicateValueRef
Calls MethodGet User[1]
Calls MethodGet Role[1]
Calls MethodGet Client Roles of User[1]
Calls MethodAssign Client Role[1]
Execution OrderGet User Step[1]
Execution OrderGet Role Step[1]
Execution OrderClient Roles Check Step[1]
Execution OrderAssign Role Step[1]
Has Parameteruser_id[1]
Has Parameterrole_name[1]
Has Parameterclient_id[1]
Has ConditionalUser Check[1]
Has ConditionalRole Check[1]
Has ConditionalClient Roles Check[1]
ValidatesUser Existence[1]
ValidatesRole Existence[1]
ValidatesClient Membership[1]
Has PreconditionUser Exists[1]
Has PreconditionRole Exists[1]
Has PreconditionUser Belongs to Client[1]
Has Documentation CommentAssign a role to a user[1]
Has Documentation CommentExample usage[1]
Has Documentation CommentGet the realm[1]
Rdf:typeFunction[1]
Rdf:typeFunction[3]
Produces OutputSuccess Message[1]
Produces OutputFailure Message[1]
Has Control FlowConditional Branching[1]
Has Control FlowException Handling[1]
Takes Parameteruser_id[2]
Takes Parameterrole_id[2]
Has Try BlockTry Block[1]
Has Except BlockExcept Block[1]
Prints on SuccessSuccess Message[1]
Prints on FailureFailure Message[1]
LanguagePython[1]
PurposeRole assignment for client[1]
Described byAssign a role to a user[1]
CatchesException[1]
ReturnsNone[1]
Inverse ofRole Assignment[1]
PerformsRole Assignment[1]
Part ofKeycloak Management Script[1]
ScopeClient Role Assignment[1]
EnforcesClient Boundary[1]
Has Function Signatureassign_role(user_id, role_name, client_id)[1]
Has Return StatementNone[1]
Has Exception HandlingExcept Block[1]
Uses VariableRealm[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.

typebeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:Function
hasParameterbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
user_id
hasParameterbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
role_name
hasParameterbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
client_id
callsMethodbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:get-user
callsMethodbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:get-role
callsMethodbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:get-client-roles-of-user
callsMethodbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:assign-client-role
hasTryBlockbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:try-block
hasExceptBlockbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:except-block
printsOnSuccessbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:success-message
printsOnFailurebeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:failure-message
hasConditionalbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:user-check
hasConditionalbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:role-check
hasConditionalbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:client-roles-check
languagebeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
Python
validatesbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:user-existence
validatesbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:role-existence
validatesbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:client-membership
purposebeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
Role assignment for client
describedBybeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
Assign a role to a user
executionOrderbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:get-user-step
executionOrderbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:get-role-step
executionOrderbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:client-roles-check-step
executionOrderbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:assign-role-step
hasPreconditionbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:user-exists
hasPreconditionbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:role-exists
hasPreconditionbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:user-belongs-to-client
catchesbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:Exception
returnsbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
None
labelbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
Assign Role Function
inverseOfbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:role-assignment
performsbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:role-assignment
partOfbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:keycloak-management-script
hasDocumentationCommentbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
Assign a role to a user
scopebeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:client-role-assignment
enforcesbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:client-boundary
producesOutputbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:success-message
producesOutputbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:failure-message
hasFunctionSignaturebeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
assign_role(user_id, role_name, client_id)
hasReturnStatementbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
None
hasExceptionHandlingbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:except-block
usesVariablebeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:realm
hasControlFlowbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:conditional-branching
hasControlFlowbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
ex:exception-handling
hasDocumentationCommentbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
Example usage
hasDocumentationCommentbeam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
Get the realm
takesParameterbeam/a2f49980-b56e-4c2f-9c1b-b7bc5b04f677
user_id
takesParameterbeam/a2f49980-b56e-4c2f-9c1b-b7bc5b04f677
role_id
typebeam/119ca795-9a01-43e8-906d-f911ab3c8a6b
ex:Function
labelbeam/119ca795-9a01-43e8-906d-f911ab3c8a6b
assign_role

References (3)

3 references
  1. ctx:claims/beam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
    • full textbeam-chunk
      text/plain1 KBdoc:beam/bdd8566d-5cef-46a6-97f1-f27f14b189f8
      Show 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
  2. ctx:claims/beam/a2f49980-b56e-4c2f-9c1b-b7bc5b04f677
    • full textbeam-chunk
      text/plain1 KBdoc:beam/a2f49980-b56e-4c2f-9c1b-b7bc5b04f677
      Show 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,
  3. ctx:claims/beam/119ca795-9a01-43e8-906d-f911ab3c8a6b
    • full textbeam-chunk
      text/plain1 KBdoc:beam/119ca795-9a01-43e8-906d-f911ab3c8a6b
      Show 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

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.