Interface

GetLoggedAsCustomerAdminIdInterface

Magento\LoginAsCustomerApi\Api\GetLoggedAsCustomerAdminIdInterface

What it does

This interface defines a contract for retrieving the administrator ID when an admin user is logged in as a customer.

Developers use this to track which admin is currently using the 'Login as Customer' feature, which is essential for audit trails and security monitoring in Magento's admin functionality.

Public Methods

  • execute()