User is not able to remove user criteria in standard change templete

Gopal14
Tera Contributor

Hi Team,

 

I have a ITIL user, he is trying to remove user criteria(Available for) for standard change template, but it is not working.

 

User criteria still showing, even though user has removed that

 

 

user is having itil, change_manager roles.

1 ACCEPTED SOLUTION

@Gopal14 

it means that user is not able to delete record from table "sc_cat_item_user_criteria_mtom"
OOTB there are 2 ACLs for Delete

-> only user with catalog_admin or catalog_manager/catalog_editor with script returning true is allowed to Delete

-> Create new Table.None DELETE ACL and add itil and change_manager role to it

AnkurBawiskar_0-1770125677936.png

AnkurBawiskar_1-1770125704517.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

18 REPLIES 18

@Gopal14 

it means that user is not able to delete record from table "sc_cat_item_user_criteria_mtom"
OOTB there are 2 ACLs for Delete

-> only user with catalog_admin or catalog_manager/catalog_editor with script returning true is allowed to Delete

-> Create new Table.None DELETE ACL and add itil and change_manager role to it

AnkurBawiskar_0-1770125677936.png

AnkurBawiskar_1-1770125704517.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar  

 

I have created ACL for this, below is my ACL

Gopal14_0-1770214636587.png

 

Gopal14_1-1770214662788.png

I have not added any role because role is having multiple users, I want this for only one particluar group, that is the reason I have added that group.

 

However it is not working

 

for that group i have added role

Gopal14_2-1770214753948.png

 

@Gopal14 

so you are saying only if logged in user belongs to that group then it should be allowed to delete?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Gopal14 

then do this

-> give snc_internal role in roles

-> use advanced script like this

answer = gs.getUser().isMemberOf('Standard Change Template');

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader