How to disable delete button on requested item table for non-admin users

PranathiChD
Giga Contributor

Hi Community,

Currently, the Delete button is visible on Requested Item (RITM) records for users.

However, for the same users, the Delete button is not visible on other forms such as:

  • Incident
  • Problem
  • Change
  • Request
  • Catalog Task

The Delete button is visible only on the Requested Item (RITM) form.

Requirement:
We want to hide the Delete button on the Requested Item form for all non-admin users, irrespective of their assigned roles. The Delete button should be visible only to users with the admin role.

We want this change to apply only to the Requested Item table without affecting the existing Delete button behavior on other tables.

Could you please suggest the recommended way to achieve this? 

Thanks in advance!

4 REPLIES 4

Vishal Jaswal
Tera Sage

Hello @PranathiChD 

Using Browser's Developer tools, you will get to know the sys_id of Delete UI Action (57dc4c970a0a0b3400f8f0538d3faf94) as shown below:

VishalJaswal_0-1793897185758.png


As it is out-of-the-box (oob), you should see Condition as current. canDelete() which is calling ACL:

VishalJaswal_1-1793897282299.png


OOB ACL (sys_security_acl): Update the role to admin or based upon your use-case:

VishalJaswal_2-1793897418593.png



VishalJaswal_3-1793897461014.png

 

I think this is a good way of showing. But I would avoid doing a query where you search for the table name in description. That could give strange results. I would rather go to the table, right click on a column, select configure->security rules.

GoranWitchDoc_0-1793917420507.png

Then add a filter to only show ACLs with operation "Delete" and there you got the one for your table (name).

GoranWitchDoc_1-1793917511807.png

Click on it, set the roles you want to have access to delete functionality and update. Make sure you know how ACLs work before doing work like this, since you need to understand how they work and the bigger picture. Otherwise you can rip open security hole like there isn't any tomorrow.

//Göran
https://www.linkedin.com/in/goranlundqvist/

AndersBGS
Tera Patron

Hi @PranathiChD 

 

Have you looked at the UI action configuration?

 

Syed14
Giga Guru

You can edit RITM delete ACL and change its role to only admin.

Syed14_0-1793991788390.png