User Criteria Diagnostics tool results inconsistent with actual user experienceIssue <!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> Issue When evaluating a user's access to a catalog item or knowledge article, the User Criteria Diagnostics tool the results do not match what the selected user actually experience when they are logged in or being impersonated. Cause One possible cause of this behavior is the use of the GlideUser API in a User Criteria script. Example For example, a User Criteria script uses "gs.getUser().getCompany ID()" to retrieve the sys ID of the Company field from the sys_user record. This value may then be used in a GlideRecord query or in some other related context. When a user evaluates another user's access to a catalog item or knowledge article to which this user criteria is applied using the User Criteria Diagnostics tool, the "gs.getUser().getCompany ID()" call will return the sys ID of the Company value for the current user, not the selected user. This is due to the fact that the tool does not use impersonation. Additional Information This is expected behavior as the User Criteria Diagnostics tool does not use impersonation. If you encounter this issue please submit an enhancement request to implement impersonation into the User Criteria Diagnostics tool. As noted in the User Criteria migration documentation, there is a variable "user_id" which is available for User Criteria scripts which refers to the user being used in the user criteria.