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

Disabling the flight in D365FO (CHD - Tier 1)

 INSERT INTO dbo.SYSFLIGHTING(FLIGHTNAME, ENABLED)  VALUES ('<FlightObjectName>_KillSwitch', 1)  or  INSERT INTO dbo.SYSFLIGHT...