The page to design for is a burst of denied admin user lookup requests during an e-commerce identity migration: the on-call sees agents unable to find shoppers by email after Google or GitHub sign-in, while a second signal shows the support panel requesting entire user listings. This is a proposed alert scenario, not an incident report. A successful HTTP response alone wouldn't tell the operator whether support access was appropriate.
Short answer: use email lookup for a single shopper, put paginated listing behind a server-side admin check, and return only the fields the support panel renders. Record who searched for whom. During migration off a managed provider, treat these as three separate checks: authorization, bounded retrieval, and attributable access. A valid session is necessary; it is not an admin role.
For an Express application on Node.js, the guard belongs on the server before the user-search handler.…