There are 2 ways to retrieve roles of a Duty. The first is by going in AOT, the second is to do a SQL Query. First Approach : Open AOT under the node Security --> Duties Then search your duty, right click on it and go into Add-Ins --> Security tools --> View related security … Continue reading AX – D365FO – Find Roles related to a Duty
Category: Duty
AX – D365FO – X++ code to find all the Duties related to specific Privileges in AX 2012
static void findAllTheDutiesForSpecificPrivileges(Args _args) { SecurityTask securityTask; SecuritySubTask securitySubTask; #define.SecurityTask("AbbreviationCodeImport_Import_RU") // your privileges name select firstOnly RecId from securityTask where securityTask.AotName == #SecurityTask && securityTask.Type == SecurityTaskType::Privilege; while select SecurityTask from securitySubTask where securitySubTask.SecuritySubTask == securityTask.RecId { select firstOnly * from securityTask where securityTask.RecId == securitySubTask.SecurityTask; info(strFmt(“%1,%2,%3″, securityTask.AOTNAME, securityTask.Name, securityTask.Type)); } }
AX – D365FO – Set up segregation of duties
Security or policies may require that specific tasks be performed by different users. You can set up rules to separate tasks that must be performed by different users. This concept is named segregation of duties. This helps reduce the risk of fraud, and helps you detect errors or irregularities. For example, you might not want … Continue reading AX – D365FO – Set up segregation of duties
AX – D365FO – Identify and resolve conflicts in segregation of duties
This topic explains how to identify and resolve conflicts in segregation of duties. You can set up rules to separate duties that must be performed by different users. This concept is named segregation of duties. When the definition of a security role or the role assignments of a user violate the rules, the conflict is … Continue reading AX – D365FO – Identify and resolve conflicts in segregation of duties
AX – D365FO – Add Role, Duty and Privileges
Create new role Create new duty Insert duty into Role Create new privilege Insert menu items into Privilege Entry points