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 CRM (Archived)

Hide OOTB button based on user's security role

(1) ShareShare
ReportReport
Posted on by

Hello,

I am using Microsoft Dynamics CRM 2016 and have below requirement:

1. Hide the OOTB button on any entity for all those users whose security role is not system administrator

I have checked and searched for the same and found the below link but it depends on the Entity privilege, so I can not use that

https://ribbonworkbench.uservoice.com/knowledgebase/articles/76681-hide-a-standard-out-of-the-box-button-based-on-a

I have also tried to do this via setting Display rule in Ribbon workbench, but I am getting the below option for that, so which one should I choose in order to achieve the same?

1680.RibbonWorkbench.png

Is there any other way I can achieve this functionality through Ribbon workbench or anything else?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    You can get current users Security Role using below javascript:

    msdynamicscrmblog.wordpress.com/.../get-login-user-role-names-in-javascript-in-dynamics-crm-2011

    You can't use javascript rule to Display Rule but in Enable rule you can use it.

    If you want to enable and disable it then i would suggest to use javascript rule.

    One more way to do it is to create a new custom two option field and populate it using javascript based on role to 0 or 1. Then you can use the Display Value Rule

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
  • Suggested answer
    Moshe Hayun Profile Picture
    365 on at

    Hi,

    You can quite do what is described in the link you provided.

    You should look for an entitiy that only System Administrator have some provileges on it, e.g. Delete on SDK Message processing step (if you have some users with System Customizer role, look for another privilege - Create of SystemUser) and use it on your Entity Privilege Rule.

    Entity Privilege Rule does not mean that the entity must be the same as the one for which we implement the rule.

    Have a nice day

  • Suggested answer
    Kristian Cole Profile Picture
    290 on at

    JavaScript hide/show would be best.

  • Sairam89 Profile Picture
    244 on at

    Ribbon Workbench Direct Security Role Based Hiding of button  is not Possible ,you can use Enable Rules  to hide the 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

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans