Find a user by email address
The UserManager
also allows you to retrieve the details of other Users if you know
their email address and have permission to view them in CXM.
<?php
/** @var \Jadu\Quantum\ServiceApiClient\Manager\UserManager $userManager */
$userManager = $container->get('quantum_service_api_client.manager.user');
$peter = $userManager->getUserByEmail('peter.parker@spiderman.web');
This will either return a User
object or null
.