Job to print all the roles in Dynamic AX

Hi, static void AlfasithTotalRolesInAX(Args _args){    SecurityRole        role;   while select role order by Role.Name asc    {        info(strFmt(“%1 — %2”,Role.Name,Role.RecId));    }    pause; } Regards,

Job to list out all roles to current user in Dynamic AX

Hi, static void AlfasithListOutRoles2User(Args _args){    SecurityRole        role;    SecurityUserRole    userRole;    boolean             added;    UserInfo            userInfo;    ;    while select * from userRole            where                userRole.User == […]

Job to assign the user role to all user in that instance in Dynamic AX

Hi, static void AssignUserRights(Args _arg){   SecurityRole        role;    SecurityUserRole    userRole;    boolean             added;    UserInfo            userInfo;    ;     select role where role.Name == “Accountant”;    while select userInfo    {        select * from userRole    […]