Notifications

9 views

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.

Article Information

Last Updated:2019-06-10 05:53:31
Published:2019-06-06