Is it possible to use different list editor for different roles?

RyoyaFukuda
Tera Contributor

Hi, all

Please let me know if it is possible to use different roles for different list edits within the same table.
For example, in the Incident table, is it possible to set that people who have the “itil” role can use list editor, but people who only have the “sn_incident_write” role cannot use list editor.

1 ACCEPTED SOLUTION

SANDEEP DUTTA
Tera Patron
Tera Patron

Hi @RyoyaFukuda ,

Yes, that's possible !!

You can do this using a ACL!! 

  • Type: record
  • Operation: list_edit
  • Name of the table 
  • Admin overrides: Clear the check box.

or you can use a script like below:

https://www.servicenow.com/community/developer-forum/how-to-disable-list-edit-by-role/m-p/1360706

 

Thanks,
Sandeep Dutta

Please mark the answer correct & Helpful, if i could help you.

View solution in original post

5 REPLIES 5

Mark Manders
Mega Patron

There are 'list-edit' ACLs. You can check there how they are configured in your instance. 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

SANDEEP DUTTA
Tera Patron
Tera Patron

Hi @RyoyaFukuda ,

Yes, that's possible !!

You can do this using a ACL!! 

  • Type: record
  • Operation: list_edit
  • Name of the table 
  • Admin overrides: Clear the check box.

or you can use a script like below:

https://www.servicenow.com/community/developer-forum/how-to-disable-list-edit-by-role/m-p/1360706

 

Thanks,
Sandeep Dutta

Please mark the answer correct & Helpful, if i could help you.

Subramanyam V
Giga Expert

Yes, its possible.

 

Create a List Edit ACL on the Incident table.
Write a script that allows list editing only for users with the itil role, and denies it for users with only the sn_incident_write role.
Sample ACL Script for List Edit on Incident Table:

Instructions:

Go to System Security > Access Control (ACL).
Create a new ACL:
Type: record
Operation: list_edit
Name: incident

// Only users with 'itil' role can use list editor
answer = gs.hasRole('itil');

In the Script field, use the code above.

Test Result:

Users with the itil role can use the list editor.
Users with only sn_incident_write (and not itil) cannot.

 

I’d appreciate it if you could mark my answer as helpful or correct if it resolved your query.

 

Regards

Subbu

Ankur Bawiskar
Tera Patron
Tera Patron

@RyoyaFukuda 

check table level list_edit ACL and see which role is allowed to edit.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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