Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Provide security to sp...
Finance forum
Answered

Provide security to specific button in form

Posted on by 255

In my case, I have created Button on hcmworker forms extension, and I want to to hide button for certain users is that is possible like ax2012? just like following link??

https://docs.microsoft.com/en-us/dynamicsax-2012/developer/how-to-use-roles-and-privileges-to-restrict-access-to-a-button

  • Akshay Thombare Profile Picture
    Akshay Thombare 255 on at
    RE: Provide security to specific button in form

    Thanks @Sukrut Parab and @André Arnaud de Calavon I got ur point 

    3122.Button.png

  • Akshay Thombare Profile Picture
    Akshay Thombare 255 on at
    RE: Provide security to specific button in form
    [quote]

    Hi Akshey,

    The neededpermission property should be set to manual like Sukrut mentioned. When the control is not visible on the privilege, try to type the control name.

    [/quote]

    I'm actually bit confused.

    Button.png
    after setting up the needed permission property where i need to set controls in privilege?

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 288,420 Super User on at
    RE: Provide security to specific button in form

    Hi Akshey,

    The neededpermission property should be set to manual like Sukrut mentioned. When the control is not visible on the privilege, try to type the control name.

  • Sukrut Parab Profile Picture
    Sukrut Parab 71,643 Moderator on at
    RE: Provide security to specific button in form

    I did not mentioned event handler in my reply. Did you try setting up permissions for the button control in privilege after setting neededpermission  to manual ?

  • Akshay Thombare Profile Picture
    Akshay Thombare 255 on at
    RE: Provide security to specific button in form

    @Sukrut Parab as per your suggestion after setting needed permissions to the manual there is an event handler to achieve functionality?

  • Verified answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,643 Moderator on at
    RE: Provide security to specific button in form

    I have not verified it in the latest version but earlier for  buttons created on  extensions event though you enabled neededpermission property , the control was not visible  when you set permissions in the privilage.  Did you give it a try if you have application with latest version ?

  • Akshay Thombare Profile Picture
    Akshay Thombare 255 on at
    RE: Provide security to specific button in form

    No its not menu item button,Its type of "Button"

  • Martin Dráb Profile Picture
    Martin Dráb 225,672 Super User on at
    RE: Provide security to specific button in form

    Is it a menu item button or a different type of button?

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,420 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,672 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans