WP Query Conditionally query meta and taxonomy

If it’s not too much of work, you could switch from using meta data to custom (private) terms for tagging the tickets to agents.

So when ever an agent (user) is created, you would have custom function run that executes wp_insert_term to create an agent-term, where the newly created user ID is used as the term slug. You would then use wp_set_object_terms to attach the agent-term to the ticket posts. And when using wp_set_object_terms you need to make sure agent/user ID is passed as string as the functions $terms parameter. If you try passing the user ID as int WP will interpret it is a term ID and setting the terms would fail.

By using agent-terms you could avoid using meta_query and do everything with tax_query.