src/Services/UserService.php
public function createUser(
        UserProfile $profile,
        array $groupIds = [],
        $mobileNumberCountry = 'ZA',
        $password = null,
        $sendWelcomeMessage = false
    ) {
        return $this->request(
            new CreateUserRequest($profile, $groupIds, $mobileNumberCountry, $password, $sendWelcomeMessage)
        );
    }
public function createUser(
        UserProfile $profile,
        array $groupIds = [],
        $mobileNumberCountry = 'ZA',
        $password = null,
        $sendWelcomeMessage = false
    ) {
        return $this->request(
            new CreateUserRequest($profile, $groupIds, $mobileNumberCountry, $password, $sendWelcomeMessage)
        );
    }
@param UserProfile $profile
@param string      $mobileNumberCountry
@param string|null $password
@param boolean     $sendWelcomeMessage
@param int[]       $groupIds

@return int The new user's ID

@throws OrdercloudRequestException