---
sourceDocument: Brazil Platform security
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-security

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Module access policy debugger

# Module access policy debugger {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Module Access Policy Debugger

The Module Access Policy (MAP) Debugger in ServiceNow enables you to analyze why users or scripts are granted or denied access to cryptographic modules within your instance.
MAPs enforce instance-level controls to ensure callers have explicit permission for encryption and decryption operations.
This tool helps you trace which policies are evaluated and understand access decisions, improving security management of cryptographic functions.
Show full answer Show less  

## Key Features

* **Access Control to Debug Logs:** Only users with `snkmf.admin` or `snkmf.cryptographicmanager` roles have default access to MAP debug logs. You can extend access by configuring the `glide.kmf.moduleaccesspolicies.debugger.authorized.roles` system property with additional roles.
* **Enabling and Disabling Debugger:** Debug logging is toggled through the Session Debug module under Diagnostics. Enable "Debug Module Access Policies" to start logging and disable it when finished to stop log generation.
* **Viewing Logs:** After enabling, trigger a MAP evaluation by accessing relevant pages. Debug messages appear at the bottom of the page, providing detailed evaluation of MAPs. Impersonation can be used to diagnose access issues from another user's perspective, provided the MAP includes the Impersonation field set to true.
* **Log Structure and Interpretation:** Logs show the cryptographic module involved, the sequence of MAP evaluations with details (name, type, target, operation, result), and the final access decision. Icons clarify message types such as informational, granted or denied access, and missing policies.

## Practical Use for ServiceNow Customers

This debugger is essential for administrators managing cryptographic module security. It allows you to:

* Quickly diagnose why access is allowed or denied for encryption/decryption operations.
* Verify that MAPs are correctly configured and evaluated.
* Control and audit access to cryptographic modules to meet compliance and security standards.
* Troubleshoot access issues efficiently by viewing detailed policy evaluation logs and using impersonation to simulate other users' access.

## Additional Information

The debugger complements other tools such as Module Access Policy Visualization and requires roles installed with the Key Management Framework. It supports customers subscribed to the Encryption and Key Management bundle and integrates with key lifecycle management processes.  
Use the module access policy debugger to review logging information and understand why your users are or aren't granted access to an encryption context.
Module access policies (MAPs) define instance-level controls for access to cryptographic modules. Callers (for example, a user or script) require explicit access to use a cryptographic module for encryption
and decryption. Use the debugger to see which policies are evaluated when a caller attempts to access a cryptographic module. You can also use the debugger and learn why access is or isn't being granted.

This flowchart shows
how your instance evaluates requests for access to a cryptographic module.

## Control access to the debug logs {#map-debugger__section_vxd_1cp_qxb}

Access to the module access debug logs is determined by role. Users with the sn_kmf.admin and sn_kmf.cryptographic_manager roles have access to the debugger. Grant access to other roles using
the glide.kmf.module_access_policies.debugger.authorized.roles system property. The value of this property is a comma-separated list of roles that access the debug logs.

## Enable or disable the debugger {#map-debugger__section_r2w_bcp_qxb}

To enable debug logging messages for module access policies, navigate to AllDiagnosticsSession DebugDebug Module Access Policies.

When you're finished debugging, you can disable the logging messages by navigating to AllDiagnosticsSession DebugDisable All.

## Access the logs {#map-debugger__section_mts_ccp_qxb}

After enabling debugging, navigate to a page that triggers a MAP evaluation to view the MAP debug logs. Debug messages appear at the bottom of the page.  
Tip:  
You can use impersonation to troubleshoot access for other users. For details on impersonation, see [Impersonating users](https://www.servicenow.com/docs/access?context=c_ImpersonateAUser&version=brazil&pubname=brazil-platform-administration&ft:locale=en-US). To view the debug logs from the perspective of another user, make sure that your module access policies with the role type have the Impersonation field set as true.

In this example, a caller invokes two access requests to the `global.fuji` cryptographic module. A symmetric encryption, which is granted, and a symmetric decryption, which was denied.

## Understanding log entries {#map-debugger__section_tvd_2cp_qxb}

Debugging information is structured using this format.

1. This first line displays the cryptographic module receiving the access request.
2. The lines between the first and last line displays the evaluated MAPs in the order that they were evaluated, and includes their name, type, target, granular operation, and result.
3. The last line displays the Policy Decision (if applicable) and the net access result for the caller (whether the caller is granted access).

{#map-debugger__ol_h44_zmp_qxb}

Each line starts with an icon that indicates its message type.
{#map-debugger__table_ixp_fd5_qxb__entry__2}

| Icon | Message type |
|-|-|
| ![Informational icon]() | Informational message |
| ![MAP grant access icon]() | Module access policy grants access |
| ![MAP deny access icon]() | Module access policy denies access |
| ![Caller grant access icon]() | Caller is granted access |
| ![Caller deny access icon]() | Caller is denied access |
| ![No MAP icon]() | No module access policy to evaluate |
[Table 1. Message icons]

{#map-debugger__table_ixp_fd5_qxb}

## Debug log examples {#map-debugger__section_kz1_bj5_qxb}

Access granted message
:

Access denied message
:

Access denied (No module access policies to evaluate
:

Access denied (insufficient privileges)
:
**Related concepts**   

* [Module access policy visualization](https://www.servicenow.com/docs/qwGQnBAH1Y0gCATy1KFMUQ "Use module access policy visualization to view all relevant cryptographic module information on a single UI page.")
* [Encryption and Key Management subscription bundle](https://www.servicenow.com/docs/kgz4neM3TYVuTBJe8spPSg "With Key Management, Field Encryption is upgraded at no additional charge to include highly configurable encryption modules. You can also optionally upgrade to the unlimited-use license. Subscribe to the new encryption entitlement bundle, Platform Encryption, which includes Field Encryption Enterprise and Cloud Encryption.")  
**Related reference**   

* [Key Management Framework key life-cycle states](https://www.servicenow.com/docs/~ivpkyfZNGkvV2jX~wX5Aw "KMF supports several cryptographic key life-cycle states through the enforcement of specific allowable actions. For example, only keys that are in the active state can be used fully for their intended cryptographic purpose. The following table provides further detail on the varying key life-cycle states.")
* [Roles installed with Key Management Framework](https://www.servicenow.com/docs/phkq_6ZGFoeRpcO6D58zmA#kmf-roles "The Key Management Framework (KMF) introduces specific roles for cryptographic module and key management-related configurations.")

*[\>]: and then


