How best to model Application Roles and Permission

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:5.3. ACL structures in graphs - - The Neo4j Manual v2.1.5

Please advice.

Best Regards,
Stevenson Lee

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:

Hi thanks for the comment.
After thinking some more.
What would be the problems of just using labels as roles?

Best Regards,
Stevenson Lee