Share via


SecuritySegregationOfDuties::validateRoles Method [AX 2012]

Validates whether a role or all roles comply with one or more of the specified SOD rules.

Syntax

server public static boolean validateRoles([RefRecId _roleId, RefRecId _ruleId])

Run On

Server

Parameters

Return Value

Type: boolean
true if the role conforms; otherwise, false.

Remarks

If the _ruleId parameter is omitted, all the rules are validated. The function writes an error to the Infolog for every violation that is encountered. Note that this method is invoked by Microsoft Dynamics AX Application Object Server (AOS) validation routines and must be executed after the modification has been entered in the database.

See Also

Reference

SecuritySegregationOfDuties Class