How do I check a permission using the API? #1527
Unanswered
jonlambert
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
I'm evaluating using Keto at the moment for use in our team.
I understand we can define relationships between entities (Document, Folder, User) and there appears to be a section in the docs that refers to permissions, and how to define them in OPL using the
permits
attribute.However, it's not clear at all how I query this using the API.
Taking this example from the docs:
How do I query the
view
permission? The documentation directs me to the API, which has an endpoint which allows me to "Check a permission", but there doesn't seem to be anything relating to permissions in the arguments to the endpoint:Am I missing something super obvious? Apologies if so!
Beta Was this translation helpful? Give feedback.
All reactions