'staff_1', 'requestData' => [ 'userId' => [ 'validation' => DataValidator::dataStoreId('user'), 'error' => ERRORS::INVALID_USER ] ] ]; } public function handler() { $userId = Controller::request('userId'); $user = User::getDataStore($userId); $staff = Controller::getLoggedUser(); Response::respondSuccess([ 'name' => $user->name, 'email' => $user->email, 'signupDate' => $user->signupDate, 'verified' => !$user->verificationToken, 'disabled' => !!$user->disabled, 'customfields' => $user->xownCustomfieldvalueList->toArray(), 'userList' => $user->supervisedrelation ? $user->supervisedrelation->sharedUserList->toArray() : [] ]); } }