Zero Trust Access Remove Roles configuration does not remove roles and logs Policy with id not found.Issue When a Session Access Role Configuration (SARC) is set to the Remove Roles action, the configured role is not removed after login, even though the role and policy conditions appear to be set up correctly. No access-restricted notification appears, and no record is created in the Session Access Audits table for the login session. Symptoms A role assigned to a user is not removed after the user logs in, even though a Session Access Role Configuration (SARC) with the Remove Roles action is configured to remove it.No banner notification stating that access has been restricted appears after login.No new row is created in the Session Access Audits table for the login session.With Zero Trust Access (ZTA) debug logging enabled, the following error appears in the logs: Attempting execution of policy: <policy_sys_id> Policy with id: <policy_sys_id> not found. Other Session Access Role Configurations using the Remove Roles action are also not enforced, even when their own policy conditions are configured correctly.Session Access Role Configurations set to the Limit to Roles action continue to work as expected. Facts Feature: Zero Trust Access (ZTA) — Session Access Role Configuration (SARC), Remove Roles action.Multiple Remove Roles SARCs on the affected instance referenced the same authentication policy record.The referenced authentication policy no longer existed in the sys_authentication_policy table, while the SARC records that pointed to it were still present.Limit to Roles SARCs on the instance did not reference the missing policy and were unaffected.Debug properties required to reproduce and capture logs: glide.authenticate.session_access.debugglide.authenticate.policy.debug Release All currently supported releases that include Zero Trust Access Session Access Role Configurations. Cause When a Session Access Role Configuration (SARC) with the Remove Roles action references an authentication policy that no longer exists on the instance, the Zero Trust Access (ZTA) session evaluation stops processing all Remove Roles configurations for that login session as soon as it reaches the missing policy, instead of skipping only the affected configuration. Because all Remove Roles SARCs are evaluated together, this also prevents correctly configured SARCs from being enforced, and no record is written to the Session Access Audits table. Limit to Roles configurations use a separate evaluation path and are not affected. A referenced authentication policy can become missing when an update set is applied or backed out, or when an instance is cloned without preserving custom authentication policy records. Resolution Option A — Correct the policy reference Navigate to All > Zero Trust Access > Authentication Policies.Open the policy record that currently has the same name as the missing policy, if one exists. Note: A new policy record with the same name as the original may already exist with a different sys_id, but pointing to a decision table that no longer exists.Click the Decision Table field and select the correct, active decision table that the policy should use. Note: Confirm which decision table is correct before completing this step. Selecting the wrong decision table re-enables role removal using an unintended ruleset.Click Update to save the policy.Navigate to All > Zero Trust Access > Session Access Role Configurations.Open each Session Access Role Configuration (SARC) that uses the Remove Roles action and currently references the missing policy.Review the list of affected SARCs and delete any that are no longer needed. Note: Export the SARC records as a backup before deleting them.On each SARC that is still needed, set the Policy field to the corrected policy from step 4.Click Update to save each corrected SARC. 10. Before activating the corrected policy, test the change on a non-production instance if one is available. Note: Activating the policy removes the roles listed on every SARC that references it, for any user who does not meet the policy condition. Multiple roles may be removed for affected users at the same time.11. Click Activate on the policy only after testing confirms the expected roles are removed for the expected users.Option B — Restore the original policy record (alternative)1. Navigate to All > Zero Trust Access > Authentication Policies and open the policy record that currently has the same name as the original, missing policy.2. Rename or delete this policy record. The original policy cannot be restored while another record uses the same name. 3. Navigate to System Update Sets and restore the original authentication policy from its update record. Note: Restoring the policy from its update record preserves the original sys_id, so any SARC that still references it begins working again without further changes. Verify the resolution: Log in with a test user who meets the Remove Roles policy condition (for example, a local user who is not a member of the applicable exception group).Confirm that a new row is created in the Session Access Audits table for the login session.Confirm that the configured role is removed from the user and that a notification banner appears stating that access has been restricted. Related Links Configure Session Access roleTutorial: Use Zero Trust AccessRole-based User Criteria may not respect Zero Trust Access session role restrictions