Notifications
Announcements
No record found.
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
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.
Hi,
Try it by unchecking override permissions checkbox.
There you can find whatever roles or privileges that overrides your permissions.
Regards,
Divya Lakshmi.J
@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???
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.
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.
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?
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...
Divya Lakshmi. J
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
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
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!!
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Priya_K 4
Martin Dráb 4 Most Valuable Professional
MyDynamicsNAV 2