Chapter 2, Developing Custom Applications discussed the concept of query Business Rules. These scripts are executed by the instance when a user attempts to access a table. This means they are very useful for controlling access to records. Let's create a new query Business Rule that checks what groups a user is in and use that information to control access to modules.
Controlling access to modules with groups
This work will not be captured in the Hotel scope application, since we will be working on core system tables. This means that the protections of scoping will not apply. Additionally, if you wanted to move this customization to another instance, it would need to be captured in an Update Set, as discussed in Chapter 10, Packaging with ...
Get ServiceNow: Building Powerful Workflows now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.