src/Controller/InviteEmployeeController.php
public function inviteAction()
    {
        $email   = $this->params()->fromQuery('email');
        $handler = $this->plugin('Organizations/InvitationHandler');
        $result  = $handler->process($email);

        return new JsonModel($result);
    }
public function inviteAction()
    {
        $email   = $this->params()->fromQuery('email');
        $handler = $this->plugin('Organizations/InvitationHandler');
        $result  = $handler->process($email);

        return new JsonModel($result);
    }
Invitation first step: Create or find user and send mail.

@return JsonModel