Have to create write acl for few fields which are present in scoped application using script. Table and other fields are present in Global application. Whenever i click on advance for writing the script it makes it read only.

Ajay Sharma6
Kilo Contributor

Not allowing to add script for ACL in scoped applications.

Have to create write acl for few fields which are present in scoped application using script. Table and other fields are present in Global application. Whenever i click on advance for writing the script it makes it read only.

Please help!

Regards,

Ajay Sharma

 

8 REPLIES 8

Pratiksha Kalam
Kilo Sage

Hello,

ACL rules in scoped applications

You can create ACL rules for objects in the same scope as the ACL rule and for tables with at least one field that is in the same scope as the ACL rule.

 

For tables that are in a different scope than the ACL rule record, the types of rules are limited.

 
  • You can create an ACL rule for any table, UI page, or other object that is in the same scope as the ACL rule.
  • You can create an ACL for a field that is in the same scope as the ACL rule.
    • If the table is in the same scope, you can use a script to evaluate permissions.
    • If the table is in a different scope, you cannot use a script to evaluate permissions.
  • You cannot create or modify ACL rules for objects that are in a different scope than the application you have selected in the application picker, including adding a role to an ACL in a different scope.
  • You can create wildcard table rules (*) only in the global scope.
  • You can create wildcard field rules (*) only for tables in the same scope as the ACL rule.

Access control list rules

 

If its useful mark correct!

Thanks,

Pratiksha

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ajay,

If your tables and fields are in Global scope then why to create field level ACLs in custom scoped application

Please create it in global scope only as the above is not allowed

https://docs.servicenow.com/bundle/orlando-platform-administration/page/administer/contextual-securi...

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

Regards
Ankur

 

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

Hi Ankur,

Few fields are present in scoped application on which i have to apply the ACLs.

Also, I have to apply script in those field based acls.

Regards,

Ajay Sharma

Hi Ajay,

Please move those fields to the scope in which the table is created

If the table is in scoped application then create those fields in scoped app

if table is in global scope then create those fields in global scope

I believe the scenario you are having is not a valid scenario. Your table is in Global Scope but fields for that are in custom scope

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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