Hello,
Please help...
I need to test a list of items against a set of rules as follows:
List
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]User[/TD]
[TD]System Roles[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Role 1[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Role 2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Role 3[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Role 4[/TD]
[/TR]
</tbody>[/TABLE]
Rules
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Rule[/TD]
[TD]System Roles[/TD]
[TD]System Roles[/TD]
[/TR]
[TR]
[TD]Rule 1[/TD]
[TD]Role 1[/TD]
[TD]Role 2[/TD]
[/TR]
[TR]
[TD]Rule 2[/TD]
[TD]Role 3[/TD]
[TD]Role 4[/TD]
[/TR]
[TR]
[TD]Rule 3[/TD]
[TD]Role 1[/TD]
[TD]Role 3[/TD]
[/TR]
[TR]
[TD]Rule 4[/TD]
[TD]Role 2[/TD]
[TD]Role 3[/TD]
[/TR]
</tbody>[/TABLE]
What I need to check:
If the user "John" has those 4 roles, which rules does he break?
So, in this case "John" breaks all for 4 rules as his 4 roles break the different combinations.
So the output could look like:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]User[/TD]
[TD]Rules broken[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
Background: This would be used to see if a user's access would be in violation of a rule set that is made up of combinations of system roles a single user shouldn't have...
Any help would be appreciated!
Many thanks
Please help...
I need to test a list of items against a set of rules as follows:
List
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]User[/TD]
[TD]System Roles[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Role 1[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Role 2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Role 3[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Role 4[/TD]
[/TR]
</tbody>[/TABLE]
Rules
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Rule[/TD]
[TD]System Roles[/TD]
[TD]System Roles[/TD]
[/TR]
[TR]
[TD]Rule 1[/TD]
[TD]Role 1[/TD]
[TD]Role 2[/TD]
[/TR]
[TR]
[TD]Rule 2[/TD]
[TD]Role 3[/TD]
[TD]Role 4[/TD]
[/TR]
[TR]
[TD]Rule 3[/TD]
[TD]Role 1[/TD]
[TD]Role 3[/TD]
[/TR]
[TR]
[TD]Rule 4[/TD]
[TD]Role 2[/TD]
[TD]Role 3[/TD]
[/TR]
</tbody>[/TABLE]
What I need to check:
If the user "John" has those 4 roles, which rules does he break?
So, in this case "John" breaks all for 4 rules as his 4 roles break the different combinations.
So the output could look like:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]User[/TD]
[TD]Rules broken[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
Background: This would be used to see if a user's access would be in violation of a rule set that is made up of combinations of system roles a single user shouldn't have...
Any help would be appreciated!
Many thanks