Hi,
There is a global function by name "isSystemAdministrator" to check whether the current user is system admin or not.Returns true if they have system admin rights else returns false.
static void CG_IsssytemAdmin(Args _args) { info(strFmt("Is system Administrator: %1", Global::isSystemAdministrator())); }
Also we have functions to check whether the current user has developer role or guest role.
Developer Role:
static void CG_IsDeveloper(Args _args)
{
info(strFmt("Is system Administrator: %1", Global::isDeveloper()));
}
Guest Security Role:
Refer below link to know about Guest Role:
(Guest security role (Guest) [AX 2012])
https://technet.microsoft.com/en-us/library/hh527095.aspx
static void CG_IsGuest(Args _args) { info(strFmt("Is system Administrator: %1", Global::isGuest())); }
*This post is locked for comments