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)

I want to disable Button for all users with a role.

(0) ShareShare
ReportReport
Posted on by

Dear all,

I want to disable Button for all users with a role. is it possible to disable with creating privilege? Guide me

Thanks

Suresh

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,443 User Group Leader on at

    it would not be enough to create another privilege

    you have to remove that button from existing roles (which has access to that button as of now)

    if same menuItem/Button is added to multiple privileges/roles and those multiple  privileges/roles are assigned to users, system taken highest value of permission.

    so, first remove the permission from existing roles for that user and then create your new privilege.

  • Suggested answer
    Divya Lakshmi Profile Picture
    745 on at

    Hi,

    Try it by unchecking override permissions checkbox.

    There you can find whatever roles or privileges that overrides your permissions.

    Regards,

    Divya Lakshmi.J

  • Sohaib Cheema Profile Picture
    49,443 User Group Leader on at

    @Divya Lakshmi,

    can we disable normal buttons(any button who is set to display on Rich Client) by overriding permission..?

    Kindly add  a new button in PurchTable. Now go for Role "Purchase Manager" who has access of Purchase. Now override permission for this role and under controls go to PurchTable.

    Now here, can you see that button and remove it by override permission..??

    I cannot do so. may be something wrong with my environment or its out of my knowledge

    Can you please write steps to achieve this???

  • Suggested answer
    Divya Lakshmi Profile Picture
    745 on at

    Hi sohaib,

    Override permissions will never help you to disable button.

    I clearly suggested in my reply that this will help to control if the object is overridden by other roles or privileges.

    I didn't mention anywhere in my reply that override permission will help to disable button.

    You can refer below link.

    https://technet.microsoft.com/en-us/library/hh209290.aspx

    Correct me if I'm wrong anywhere.

    Regards,

    Divya Lakshmi.J

  • Sohaib Cheema Profile Picture
    49,443 User Group Leader on at

    well I cannot understand here "relationship of Overriding permission with permission of a button", which is normally set as Manual and dragged inside any privilege.

  • Sohaib Cheema Profile Picture
    49,443 User Group Leader on at

    and how "Override permission" form can give me information about permission of my buttons which are set to Manual.

    Can "Override permission" from give me list of all those roles where a specific button is being used?

  • Suggested answer
    Divya Lakshmi Profile Picture
    745 on at

    Disable.PNGHi,

     No, It wont give u those list.

     I mean to say you can control through access level instead of removing from existing roles etc. i.e...If you navigate to controls and check for buttons and uncheck do not override ,set Access level to no control instead of removing it from roles.

    For eg: you can check for control ButtonIntercompanyPurchTable in Sales Table.

    Please find provided screenshot. Can follow this if the scenario suits his questn...

    Regards,

    Divya Lakshmi. J

  • Suggested answer
    Divya Lakshmi Profile Picture
    745 on at

     

    Hi Team,

    After some analyse,I came to know that you can view related roles that are assigned to a menuitem. Hope this helps!

    Way to view is Right click MenuItem -> Add-ins->Security tools->View related security roles

    Related-roles.PNG

    Regards,

    Divya Lakshmi.J

  • Suggested answer
    Hariharans87 Profile Picture
    3 on at

    If you create the button without assign any security in the form, it will be visible to all users who have the permission for that form.

    If you create the menu item button, it won't be visible to the all users except who having the permission for the menu item.

    I guess that you are using button not a menuitem button. So, create a class, build your logic, create action menu item, call the class in the action menu item, create the privilege, add the created action menu item under the privilege entry point and add this privilege to the role

    So, that role assigned users can only view the button.

    I don't know about disable. It will only do invisible.

    Let me know if i misunderstood your problem

  • Suggested answer
    Divya Lakshmi Profile Picture
    745 on at

    Hi,

     Create seperate usergroup with users who dont want to see that button

     Parameterize the usergroup ..

     Now write code to set the button to visible yes or no for the users if present in the parameterized usergroup ..

    hope this helps!!

    Regards,

    Divya lakshmi J

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans