UML class diagram for RBAC. I don't know if the permissions and roles are properly set

I am trying to create a UML class diagram using RBAC. I am new to this language and trying to make sense of it. I am attempting to showcase permissions to specific roles. I am not sure whether that is even necessary for the diagram or if the actual permission setting is done later in the code. My goal is to show a user class that has a manager and member of a library. The manager can add and delete books and the member can borrow and return books. I'm don't know if the diagram properly shows RBAC with the relationships. Further, I am not sure if the permission IDs need to be explicitly stated in any of the attribute sections.

Mar 26, 2025 - 00:22
 0
UML class diagram for RBAC. I don't know if the permissions and roles are properly set

I am trying to create a UML class diagram using RBAC. I am new to this language and trying to make sense of it. I am attempting to showcase permissions to specific roles. I am not sure whether that is even necessary for the diagram or if the actual permission setting is done later in the code. My goal is to show a user class that has a manager and member of a library. The manager can add and delete books and the member can borrow and return books. I'm don't know if the diagram properly shows RBAC with the relationships. Further, I am not sure if the permission IDs need to be explicitly stated in any of the attribute sections.

enter image description here