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

SQL Query combined report: Data vs Index size

 USE AxDB; GO SELECT TOP (100)     s.name AS SchemaName,     t.name AS TableName,     SUM(CASE         WHEN i.index_id IN (0,1)         THEN...