diff --git a/src/API/Management.php b/src/API/Management.php index 6183daca..f07079a8 100644 --- a/src/API/Management.php +++ b/src/API/Management.php @@ -16,6 +16,7 @@ use Auth0\SDK\API\Management\Tickets; use Auth0\SDK\API\Management\UserBlocks; use Auth0\SDK\API\Management\Users; +use Auth0\SDK\API\Management\UsersByEmail; use Auth0\SDK\API\Helpers\ApiClient; use Auth0\SDK\API\Header\Authorization\AuthorizationBearer; @@ -146,6 +147,7 @@ public function __construct($token, $domain, $guzzleOptions = []) { $this->tickets = new Tickets($this->apiClient); $this->userBlocks = new UserBlocks($this->apiClient); $this->users = new Users($this->apiClient); + $this->usersByEmail = new UsersByEmail($this->apiClient); } protected function setApiClient() { diff --git a/src/API/Management/UsersByEmail.php b/src/API/Management/UsersByEmail.php new file mode 100644 index 00000000..ad3ab051 --- /dev/null +++ b/src/API/Management/UsersByEmail.php @@ -0,0 +1,18 @@ +apiClient->get() + ->addPath('users-by-email'); + + foreach ($params as $param => $value) { + $client->withParam($param, $value); + } + + return $client->call(); + } +}