fusionauth-site icon indicating copy to clipboard operation
fusionauth-site copied to clipboard

Document complex use case around entities

Open mooreds opened this issue 6 months ago • 0 comments

Mapping permissions in a hierarchical manner

  • company -> department -> document

User can be granted permissions (read, write, admin) to any of these.

How do you roll it up to know which users have access to document A? Which documents does user B have access to?

You'd need to store data in the entity.data field to store the tree, then run queries against the document A or user B to find out the answer.

Include a sample app.

mooreds avatar Feb 14 '24 20:02 mooreds