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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to disable button bases on roles for some user

(0) ShareShare
ReportReport
Posted on by 89

hello master,

pastedimage1595558591224v1.png

can we change to disable or enable button new (we can't click the button (example like button lines and validate)) based on roles we give for user ? 

thanks you

I have the same question (0)
  • Blue Wang Profile Picture
    on at

    HI Rahmat VP,

    You can try to change form datasource allowcreate propertity through code.

    When the form doesn't allow record creation. The form will has a disabled system-defined New button.

  • Rvp_ Profile Picture
    89 on at

    is that have example to do that?

    but it have relation with user roles?

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    1) Create a privilege

    2) Add the menu item of the form in the Entry points of the privilege

    3) Set Access level: Read for that entry point

    4) Give this privilege to your user (via security role)

    Result: users can't create new records on the form.

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

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans