Prevent duplicate entries with Contextual Security: Role Management V2
Roles inherited from other roles are added as individual entries in the User Roles table [sys_user_has_role], potentially causing one role to have duplicate entries. Contextual Security: Role Management V2 eliminates these duplicate entries and prevents future duplicates.
Eliminate duplicate entries through inheritance count
Contextual Security: Role Management V2 uses the Inheritance Count (inh_count) column to track the number of times a role is inherited from another role or group. In the User Roles [sys_user_has_role] table, a user can inherit a specific role only one time, eliminating duplicate entries. The Inheritance Count (inh_count) column is read-only and calculates the number of times the user inherits a role.
Activation changes
Contextual Security: Role Management V2 is automatically installed on new instances and can be activated for upgrades. When activated, Contextual Security: Role Management V2 replaces both Contextual Security and Contextual Security: Role Management Enhancements.
- granted_by (used only by Role Delegation)
- included_in_role
- included_in_role_instance
Visualize role inheritance through the Role Inheritance Map
glide.security.inh_count_patcher.enabled property to get the exact inheritance count.