web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Report Menu Item access only one company

(0) ShareShare
ReportReport
Posted on by

hi friends,

how to set report menu item (menu path) access only one company not for all company. How to security for the report..........

 

*This post is locked for comments

I have the same question (0)
  • dolee Profile Picture
    11,279 on at

    Hi Rajesh,

    Do you mean the same user should be able to see a report menu item (in the Area page of a module) in one company; but when he/she switches company, that user should not be able to see the same report menu item?

    If above isn't correct, can you provide more details on your requirement?

  • Community Member Profile Picture
    on at

    Hi Lee thank u for your reply, i want same thing....how I get it.........

  • Community Member Profile Picture
    on at

    how to hide menu item in code.............pls help me........

  • Suggested answer
    Jonathan  Halland Profile Picture
    11,310 on at

    Hi Guys.

    You can easily assign roles per company in AX 2012. Navigate to System Administration -> Users -> Double click on the relevant user.

    Select a role that the user is assigned to,

    Click assign Assign Organisations

    Click grant access to specific organisations individually

    Check the companies you want to the user access to .

    You may need to customise the roles to get exactly what you want.

    Update: Sorry I didn't entirely understand your question, but you could still use this approach. Create a role with access to your menu-item and assign to to all users but only for a specific company. System admins will still see it in all companies, but thats the only exception I'm aware of.

  • André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    Hi Rajesh,

    The approach mentioned by Jonathan is correct. It is not possible to hide menu items using x++ coding.

    If this company is the only one in a certain country, you can use the property CountryRegionCodes on the menu item to have it restriced for a certain country only.

  • Community Member Profile Picture
    on at

    Hi Rajesh,

    You can get the same using x++.

    if you are displaying the menu item on a form,

    then you should write the following code in its init() method :

    if( curext() == '_company') // _company is the specified company.

    {

          menuItemName.visible(true); // make sure that menuItemName AutoDeclaration YES

    }

    else

    {

          menuItemName.visible(false);

    }

    Thanks & Best Regards

    Ram Challa

  • Community Member Profile Picture
    on at

    Hi Lee,

    What you understood is perfectly right, even i have the same requirement as what Rajesh has the menu item should be visible for the user(Admin) in one company where in when he switches the company it shouldn't be visible, but as per my knowledge for an admin there is no such option if there is a way out can you please let me know? 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans