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)

Hiding Menus for security role.

(0) ShareShare
ReportReport
Posted on by 120

Hello all,

I am working on security project and I use SDT to hide and show the menus. While doing so, I found a strange behavior in Accounts payable vendor form. In the "All vendors" form, "General tab", I need to hide "print management" menu for a specific role.

but this is no menu item. It is button with clicked method. Can you give me ideas on what can be done here?

Also another question on the same all vendors  form, I have restricted everything from "Procurement tab", still, it shows up without any menus. How can I hide the tab as well?

4130.1.png

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,025 Super User 2025 Season 2 on at

    Hi Vkunchakuri,

    When you want to hide a button control, you have to change the form design (if it is not already set to the correct setting). The property NeededPermission of this button needs to be set to the value 'Manual'. Then initially nobody will see this button. When persons do need access, you can add the form control to a privilege or the security role on the permissions node.

    Can you share what you have done for the second question? Eventually, you can also set the NeededPermission for the tab page, but maybe, there is another option.

  • Vgubba Profile Picture
    120 on at

    Thank you Andre,

    I just want to hide this for 1 particular role, so is there a reverse way of doing it? so with the above possibility that you have given, the button is usually is hidden and can be visible for particular roles. Is there way that usually it is visible and can be hidden for one particular role?

    for second question, I just removed the access for all menus in that tab page.

    Thanks,

    VKunchakuri.

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

    Hi VKunchakuri,

    Unfortunately, there is no other way for hiding the button in only one role.

    For the second question. Can you check the property of the tab page called 'HideIfEmpty' (if exists for tab pages)?

  • Verified answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    you can use the NeededPermission as Andre mention you or make some customization

  • Vgubba Profile Picture
    120 on at

    OK, Thank you so much for you help.

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