https://authzed.com logo
#spicedb
Title
# spicedb
i

Igor.Shmukler

09/14/2022, 2:47 PM
does
ExpandPermissionTree
support wildcards? for me, it is working with named relations, yet when i pass
*
it errs.
Copy code
$ zed permission expand edit event:5
event:5->edit
 └── union
      ├── event:5->edit
      │    └── union
      │         ├── event:5->edit
      │         │    └── union
      │         │         ├── event:5->writer
      │         │         └── event:5->maintainer
      │         └── event:5->admin
      └── event:5->edit
           └── union
                └── organization:1->owner
                     └── user:2
with a wildcard:
Copy code
$ zed permission expand * event:5
Error: accepts 2 arg(s), received 8
Usage:
  zed permission expand <permission> <resource:id> [flags]