Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-01-2018 07:10 PM
Hi I want to create a way to specify roles and permission for an application.ie the api of my application.
I was wondering how to model it.
I was thinking something as simple as
(:User)-[:HAS_ROLE]->(:Role)
(:Role)-[:HAS_PERMISSION]->(:FEATURE)
taking to consideration:https://neo4j.com/docs/2.1.5/examples-acl-structures-in-graphs.html
Please advice.
Best Regards,
Stevenson Lee
11-03-2018 05:57 AM
Hi Lee,
If this model captures all the scenarios of your application then it looks great. Keeping it simple is the way to go IMO.
If you will run into more complex structures of identity management then I suggest you check more resources:
11-14-2018 01:20 AM
Hi thanks for the comment.
After thinking some more.
What would be the problems of just using labels as roles?
Best Regards,
Stevenson Lee
All the sessions of the conference are now available online