example permission-config yaml? #152
-
It would help getting up to speed to see some public examples of permission configs, particularly one intended for a B2B SaaS. Can anyone point me to a public example? Or perhaps share a sanitized export? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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
I'd recommend to take a look at ory/examples#15 (pending my review for far too long). We will also add a more detailed example once the Ory Permission Language is released (working on it rn)! |
Beta Was this translation helpful? Give feedback.
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
and then you can create tuples like
I'd recommend to take a look at ory/examples#15 (pending my review for far too long). We will also …