Thursday, October 5, 2017

Modify the permissions of the Admin group , After creation of new security Key


static void San_GrantAccessAdminGroup(Args _args)
{
    #Admin
    SecurityKeySet  securitySet;
    ;
    setPrefix(funcName());

    securitySet = new SecurityKeySet();
    securitySet.loadGroupRights(#AdminUserGroup, '');

    securitySet.access(securitykeynum("SecurityKey"), AccessType::Delete);

    xAccessRightsList::saveSecurityRights(securitySet.pack(), #AdminUserGroup, '');
}

No comments:

Post a Comment

Copy Markup charges while posting purchase invoice using X++

 Copy Markup charges while posting purchase invoice using X++ Class: Important: Code logic is just for Reference.  New class => Duplicate...