billions-evening-60046
08/17/2022, 5:41 AMpermissions:create#allowed@(roles:admin#has)
permissions:delete#allowed@(roles:admin#has)
permissions:view#allowed@(roles:admin#has)
permissions:view#allowed@(roles:user#has)
roles:admin#has@(groups:manager#member)
roles:user#has@(groups:employee#member)
groups:manager#member@sarah
groups:employee#member@john
When using the expand API as follows, it allows me to list all the users who have the create permission
keto expand <relation> <namespace> <object>
keto expand allowed permissions create
However, is there a way to get all the permissions assigned to the user Sarah? Like get create, view, delete as the list of permissions allowed for Sarah
The only way I found was to explicitly list Sarah’s groups, then roles attached to those groups and finally get the permissions attached to those roles, which will make at least 3 API calls.
Thanks in advance!narrow-van-43826
08/17/2022, 10:26 AMbillions-evening-60046
08/18/2022, 9:31 AM