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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to disable button using security

(0) ShareShare
ReportReport
Posted on by 632

Hi All,

In custom form i have added Edit button and i would like to disable that button for some user.

Please let me know how to achieve this.

Regards

Rahul

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,046 Most Valuable Professional on at

    You need to focus on access to the data source / table, not on the button.

    If you don't want to allow the users to make any changes in the given form, simply give them only read access to the form (through the menu item). Of course, you can configure permissions in a more granular way if needed.

    By the way, you shouldn't have added the Edit button. You're duplicating standard functionality, and the standard Rdit button respects permissions of the linked data source. You risk spending time with developing something unnecessary and also worse that what's already there.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi Rahul, It can be done by assigning View security privilege to those users. You should create two privileges (View and Maintain) of your custom form and assign privileges to users as required. You can check these privileges on any form from Security Diagnostics.

    Also, please provide more details on how you have created Edit button in form.

    Check this article

    dynamics365musings.com/.../

  • Rahul.p Profile Picture
    632 on at

    Those are the command Button control and set the command property to EditRecord.

    pastedimage1679643023032v1.png

    I have created privilege and set access level to Read, but Edit button is enable and user want Edit button should disable.

    Please let me know how to disable edit button.

  • Martin Dráb Profile Picture
    238,046 Most Valuable Professional on at

    Please explain the purpose of this button. It doesn't make sense to me.

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

    Hi Rahul,

    Can you describe the technical details what control type you used, what properties you set and how you added this button on the form?

  • Suggested answer
    Andrew Xu Profile Picture
    3,877 on at

    you can set the property 'Needed Permission' of that button to 'Manual', then you'll be able to set permissions to allow/deny the execution of that button.

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

News and Announcements

Season of Giving Solutions is Here!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 678 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 407 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 283 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans