当用户肯定在池中时,AWS Cognito adminSetUserPassword将返回“用户不存在。”

When calling the following code it returns an exception

$this->client->adminSetUserPassword([
                'Password'          => $password,
                'Permanent'         => true,
                'UserPoolId'        => $this->poolId,
                'Username'          => $email,
            ]);

-errorCode: "UserNotFoundException"
-errorMessage: "User does not exist."

I'm using similar admin level requests elsewhere as follows...

$result = $this->client->adminDeleteUser([
                    'UserPoolId' => $this->poolId,
                    'Username'   => $email,
                ]);

$result = $this->client->adminDisableUser([
                'UserPoolId' => $this->poolId,
                'Username'   => $email,
            ]);

$response = $this->client->adminInitiateAuth([
                'AuthFlow'       => 'ADMIN_NO_SRP_AUTH',
                'AuthParameters' => [
                    'USERNAME'     => $email,
                    'PASSWORD'     => $password,
                    'SECRET_HASH'  => $this->cognitoSecretHash($email),
                ],
                'ClientId'   => $this->clientId,
                'UserPoolId' => $this->poolId,
            ]);

All these methods and others work correctly with the user, but the new adminSetUserPassword method seems to fail, despite the user definitely being in my user pool.