Debugging contextual security rules

Besides Debug Business Rules, Debug Security Rules is probably the most frequently used option. Without it, it can be rather difficult to understand what the contextual security manager is doing. Let's start by performing the following steps:

  1. Firstly, end the Business Rule debugging by navigating to System Diagnostics > Session Debug > Disable All.
  2. Then activate the security debug by navigating to System Diagnostics > Session Debug > Debug Security. This will cause the platform place little bug icons on all the fields and again add lots of logs at the end of every page.
  3. Once enabled, impersonate a user that has the Hotel roles; I'll use Polly Sherman again, like I did in Chapter 8Securing Applications ...

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.