Hi! There is a way to list all relationships based...
# talk-keto
f
Hi! There is a way to list all relationships based on the permission “level” not the relationship “name”? I’m using the Permissions HTTP API like in the code below:
Copy code
const result = await oryPermissionAPI.expandPermissions({
    namespace: 'Solution',
    object: 'solution1',
    relation: 'owners',
    maxDepth: 3,
  });
however I can only list deep relationships using relationship name (
owners
), not the permission name (
view
). Probably a similar question has come up many times, but it surprises me why in PermissionAPI we use relationship names and not “levels” in the
permits
object in the Namespace. For any help thank you very much! 🙂
s
no permissions are not yet supported by expand, only relationships
f
@steep-lamp-91158 thanks for quick response! So the only solution to my problem is to make a few calls to the service to fetch all the possible relations that I need… 😅
if it’s not yet supported, I guess you have it in the roadmap, yes?
s
yes it is on the roadmap but no eta
f
Is there a github issue that one could follow for this?
s
yes
f
Thanks 🙂👍