This post is machine-translated. The original post in german language can be found here.

Check access rights for MenuItem by code

If you need to check the access rights of the current user for a MenuItem, the following snippet can give you an example.

static void getMenuItemAccessRights(Args _args)
{
    AccessRight accessRight = AccessRight::NoAccess;

    accessRight = SecurityRights::construct().menuItemAccessRight(SecurableType::MenuItemDisplay, menuitemDisplayStr(CustGroup));

    info(strFmt("%1", accessRight));
}
These post applies to following version:
Dynamics AX 2012

JC 03/19/2024 19:56 | #1

thank you

 
 

 

 
 
 
Posts of the actual month
November 2024
MoTuWeThFrSaSu
 123
45678910
11121314151617
18192021222324
252627282930 
 
© 2006-2024 Heinz Schweda | Imprint | Contact | German version | Mobile version
In order to provide you with better service, this site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.