SecuritySegregationOfDuties::getUserViolations Method [AX 2012]
Collects all the SOD violations for either a single user or all users, for a single rule or all rules.
Syntax
server private static container getUserViolations(RefRecId _ruleId, SecurityUserRole _userRole)
Run On
Server
Parameters
- _ruleId
Type: RefRecId Extended Data Type
The ID of the SOD rule to validate; optional.
- _userRole
Type: SecurityUserRole Table
The required external data for the conflicts, such as the user ID and the rule.
Return Value
Type: container
A container that holds a nested container of all the violations.
Remarks
If the _ruleId parameter is omitted, all the rules are validated. The userRole parameter indicates whether conflicts are created. The field format in the container is specified in the class declaration.