You may notice that even when the Administrators Can Login as Any User setting under Login Access Policies is disabled in a Sandbox, the 'Login' button is still available on the Users page.
This article explains why the 'Login' button remains available on the Users page in a Sandbox even after the Administrators Can Login as Any User setting is disabled, and how to log in as any user when needed.
This is working as designed. When a sandbox refresh is completed, a user has login access for 10 years after the refresh date under the following conditions:
This login ability is available to any System Administrator within the Sandbox, regardless of whether the Administrators Can Login As Any User setting is on or off. It cannot be disabled.
To log in as any user, access your sandbox via test.salesforce.com.
Note: The option to log in as any user is not available when users access a sandbox from production by using the Login link.
000390027

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.