Entities endpoints #395
Replies: 3 comments 2 replies
-
Hi @marlenekoh You should be able to use the Read endpoint for that. Let me know if that helps. |
Beta Was this translation helpful? Give feedback.
-
Re:
This is another case were we strongly recommend you do not store names or PII in OpenFGA, and rely on unique identifiers. In that case you would have the UID<>Name mapping in your DB and use that as the base for listing. Part of that is the idea that OpenFGA is not your data store, it's your authorization data store, and if an entity does not relate to any other entity, by definition it would not affect authorization and does not need to be in OpenFGA. We may stray away from that idea and change OpenFGA to be a more general purpose DB, but currently our design is based on:
|
Beta Was this translation helpful? Give feedback.
-
PII aside, I think there's still some use case here so I can as OP wanted, populate a frontend form so people can see what available tuples can be assigned to a user and then assign them - the use case for us is a superadmin web view to fix/assign tuples to users, but it's hard to know what can be assigned and with what values are permitted without hard coding them into the frontend logic. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Would be great to have an api endpoint for listing all entities (users, objects) within a store. This will be useful for populating dropdown lists - e.g. for a customer to request for permissions, to list all roles/documents.
In the same vein, to be able to add/remove/rename entities (which may or may not be part of relationship tuples) would be extremely helpful as well.
Beta Was this translation helpful? Give feedback.
All reactions