The CreatorCon Call for Content is officially open! Get started here.

Users with "Asset" role were unable to delete assets in Servicenow

divyakosaraju
Giga Expert

Hi,

Recently we observed that the users with Asset role cannot delete assets but according to Docs they should have that functionality . So not sure what is happening. 

Also few weeks back i have modified 3 UI Actions - Delete[Global] , so only admins can have the functionality to delete and all the others will not have that. Do this condition has impact on the delete button on alm_asset table. Please suggest.

Thanks,

Divya

1 ACCEPTED SOLUTION

That won't work? The users with asset role don't have the admin role I hope? So your condition will evaluate to current.canDelete() = true and gs.hasRole('admin') = false. Because it's &&, your condition is false.

Have you considered changing the ACL's or creating a custom Delete UI Action to overwrite the Global one? In out-of-the-box instances there are some good examples for an overwrite Delete UI Action. Take a look at the one for "kb_knowledge" table for example -> keypoint is the Action Name: "sysverb_delete".

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

5 REPLIES 5

That won't work? The users with asset role don't have the admin role I hope? So your condition will evaluate to current.canDelete() = true and gs.hasRole('admin') = false. Because it's &&, your condition is false.

Have you considered changing the ACL's or creating a custom Delete UI Action to overwrite the Global one? In out-of-the-box instances there are some good examples for an overwrite Delete UI Action. Take a look at the one for "kb_knowledge" table for example -> keypoint is the Action Name: "sysverb_delete".

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn