Sunday, July 3, 2016

Check Developer, System Admin access in ax 2012 x++

static void CheckDevSysAdmin(Args _args)
{
    SecurityRights  rights = SecurityRights::construct();
    info(strFmt("%1",rights.isDeveloper()));
    info(strFmt("%1",rights.isSystemAdministrator()));
}

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...