Hide Configure an UI Action from List Context menu

Alex248
Mega Expert

Hello experts,

I have users who have "ITIL" and "discovery_admin" roles.

I want to hide "Configure" button for such users to avoid scripting, but it must be allowed for admins.

find_real_file.png

I've added condition gs.hasRole('user_admin') to 'Configure' Context Menu and it works for users who has ITIL role only. For users who have both roles the Configure button is hidden on the list view, but it is still available on the Record Form.

find_real_file.png

find_real_file.png

Chrome "Inspect Elements" refers to sys_id 92facc0a8016501f4c4a351133247, but I couldn't find it.

find_real_file.png

I suppose that this button should be configured not in Context Menu or the discovery_admin role has inherit some developer role for task table .

Does somebody know how to hide Configure button for non-admins on the Record Form?

 

4 REPLIES 4

Matt Taylor - G
Giga Guru

If you navigate to System UI > UI Context Menus, you can find and alter the context menus in your instance. The Configure context menu should be in there.

 

More info can be found here.

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

Usually this form header Configure button is visible based on Role the user has. 


THanks,
Ashutosh

Alex248
Mega Expert

I tried to disable all UI Context Menus in order to define what Menu can influence on this button, and I had the same result.

Alex248
Mega Expert

I've solved this issue. I hadn't noticed that discovery_admin role contains business_rule_admin role.

Thanks everyone for help.