Entities endpoints #395
Replies: 2 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.
-
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