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

Search hierarchy for a match (TableALLGroup) X++

  Table1 ppt;  select firstonly ppt  order ItemCode, ItemRelation, AccountCode, AccountRelation where      (ppt.ItemCode == TableGroupAll::T...