Skip to content

example permission-config yaml? #152

Answered by zepatrik
tomdavidson asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, right now there is not too much to do. All that is needed is the namespaces. These highly depend on your use-case, but you could start of e.g. with

ory patch project $project_id --add '/services/permission/config/namespaces=[{"id": 0, "name": "files"}]'
ory patch project $project_id --add '/services/permission/config/namespaces=[{"id": 1, "name": "directories"}]'
ory patch project $project_id --add '/services/permission/config/namespaces=[{"id": 2, "name": "groups"}]'

and then you can create tuples like

tomdavidson _is_ owner _of_ files:/whatever
zepatrik _is_ member _of_ groups:admin

I'd recommend to take a look at ory/examples#15 (pending my review for far too long). We will also …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants