has_role
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-08.)
has_role has 37 facts recorded in Dontopedia across 2 references, with 6 live disagreements.
Mostly:has parameter(4), rdf:type(2), is defined in(2)
Maturity scale
raw canonical shape-checked rule-derived certifiedInbound mentions (9)
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.
callsCalls(1)
- Restrict Dense Data Access Function
ex:restrict-dense-data-access-function
caughtByCaught by(1)
- Keycloak Error
ex:keycloak-error
containsContains(1)
- Example Code
ex:example-code
describesDescribes(1)
- Comment Function Purpose
ex:comment-function-purpose
implementedByImplemented by(1)
- Check User Role
ex:check-user-role
invokesInvokes(1)
- Restrict Dense Data Access Function
ex:restrict-dense-data-access-function
usesUses(1)
- Restrict Dense Data Access Function
ex:restrict-dense-data-access-function
Other facts (35)
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 |
|---|---|---|
| Has Parameter | token | [1] |
| Has Parameter | role_name | [1] |
| Has Parameter | token | [2] |
| Has Parameter | role_name | [2] |
| Rdf:type | Function | [1] |
| Rdf:type | Function | [2] |
| Is Defined in | Example Code | [1] |
| Is Defined in | Python Script | [2] |
| Calls | Userinfo Method | [1] |
| Calls | Keycloak Openid Userinfo | [2] |
| Uses | Keycloak Openid Userinfo | [2] |
| Uses | keycloak_openid | [2] |
| Extracts | realm_access | [2] |
| Extracts | roles | [2] |
| Return False When | role-absent | [2] |
| Return False When | exception-occurs | [2] |
| Purpose | Check User Role | [1] |
| Belongs to Listed in | Example Code | [1] |
| Assigns Result to | Userinfo Variable | [1] |
| Designed for | Authorization Check | [1] |
| Contains Body | Function Body | [1] |
| Returns | boolean | [2] |
| Checks | Dense Data Access Role | [2] |
| Handles | Keycloak Error | [2] |
| Prints Error Message | true | [2] |
| Has Try Except Block | true | [2] |
| Catches | Keycloak Error | [2] |
| Is Defined As | Function Definition | [2] |
| Checks Membership of | Dense Data Access Role | [2] |
| Return True When | role-present | [2] |
| Has Comment | Function to check if a user has a specific role | [2] |
| Calls Method on | Keycloak Openid | [2] |
| Handles Exception Type | KeycloakError | [2] |
| Validates | Access Token | [2] |
| Returns True for | Dense Data Access Role | [2] |
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 (2)
ctx:claims/beam/fc82d783-5078-484a-b28f-d556e6e9c5ab- full textbeam-chunktext/plain1 KB
doc:beam/fc82d783-5078-484a-b28f-d556e6e9c5abShow excerpt
You've already assigned the `dense-data-access` role to a user. Let's make sure this is done correctly and then move on to enforcing the role in your application. ### Step 3: Enforce Role-Based Access Control in Your Application To enforc…
ctx:claims/beam/4b789af5-9acb-408b-a22c-966f2aee67e6
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.