github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/lookupsametypes.yaml (about) 1 --- 2 schema: >- 3 definition test/user {} 4 5 definition test/resource { 6 relation viewer: test/user | test/usergroup#member | test/usergroup#manager 7 relation editor: test/user | test/usergroup#member | test/usergroup#manager 8 relation creator: test/user | test/usergroup#member | test/usergroup#manager 9 relation owner: test/user | test/usergroup#member | test/usergroup#manager 10 11 permission view = viewer + editor + creator + owner 12 } 13 14 definition test/usergroup { 15 relation direct_member: test/user | test/usergroup#member | test/usergroup#manager | test/usergroup#contributor 16 relation contributor: test/user | test/usergroup#member | test/usergroup#contributor | test/usergroup#manager 17 relation manager: test/user | test/usergroup#member | test/usergroup#manager 18 permission member = direct_member + contributor + manager 19 } 20 relationships: | 21 test/usergroup:productname#manager@test/user:an_eng_manager#... 22 test/usergroup:productname#direct_member@test/user:an_engineer#... 23 test/usergroup:applications#manager@test/user:an_eng_director#... 24 test/usergroup:engineering#manager@test/user:cto#... 25 test/usergroup:csuite#manager@test/user:ceo#... 26 test/usergroup:csuite#direct_member@test/user:cto#... 27 test/usergroup:other#direct_member@test/user:denied#... 28 test/usergroup:engineering#direct_member@test/usergroup:applications#member 29 test/usergroup:applications#direct_member@test/usergroup:productname#member 30 test/usergroup:engineering#direct_member@test/usergroup:csuite#member 31 test/resource:promserver#creator@test/user:an_engineer#... 32 test/resource:promserver#viewer@test/usergroup:engineering#member 33 test/resource:jira#viewer@test/usergroup:engineering#member 34 test/resource:promserver#viewer@test/user:an_external_test/user#...