Using a Guest-like User in ATF to Test Unauthenticated (Guest) Behavior<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Overview Customers sometimes want to test how the ServiceNow system responds to unauthenticated guest access (users who are not logged in). However, the Automated Test Framework (ATF) does not support executing steps as a true guest (unauthenticated) user. Workaround To approximate guest access within ATF, you can create a guest-like test user: 1. Create a new user record in the instance. 2. Do not assign any roles. 3. Do not add the user to any groups. This guest-like user will have no roles or permissions, making it behave similarly to an unauthenticated user. You can then impersonate or run ATF steps as this account to validate how the system responds to minimal access. This approach does not perfectly replicate true guest access but provides a practical way to test. If the workaround does not meet your testing requirements, it indicates that the test scenario cannot be completed using ATF. In such cases, consider using external tools (e.g., Selenium, Postman) to simulate true unauthenticated guest access.