# Users With Admin Tokens

> Admin tokens. Who holds them?

Canonical URL: <https://datadriven.io/problems/users_with_admin_tokens>

Domain: SQL · Difficulty: medium · Seniority: L3

## Problem

Find every user who owns at least one API token whose scope contains the substring 'admin'. Return the user_id, username, email, token_id, and the token's scope. Sort by user_id ascending.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/users_with_admin_tokens)
- [SQL Interview Questions](https://datadriven.io/sql-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.