Skip to main content

Notifications

Community site session details

Community site session details

Session Id :

Global functions to check whether a user is system Admin or not in Ax2012

Chaitanya Golla Profile Picture Chaitanya Golla 17,225

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()));    
}

Comments

*This post is locked for comments