[Vtigercrm-developers] Ways to create bulk users

Sutharsan Jeganathan ajstharsan at gmail.com
Mon Nov 19 03:58:14 PST 2012


Hi Marian

Here is the solution:  Use
vtwsclib - vtiger CRM Web Services Client Library

download :
https://www.vtiger.com/crm-utilities/vtwsclib-vtiger-crm-web-services-client-library/

Example :
<?php
include_once('vtwsclib/Vtiger/WSClient.php');
$url = 'http://saron/vtiger';
$client = new Vtiger_WSClient($url);
$login = $client->doLogin('admin', '6cqygwBtcwxb04');
if(!$login) echo 'Login Failed';
else {
        $module = 'Users';
       $record = $client->doCreate($module,
          Array('user_name'=>'r', 'user_password'=>'123456', 'email1'=>'
rad28 at gmail.com', 'confirm_password'=>'123456', 'last_name'=>'Gudarzi',
'roleid'=>'H3'));
    if($record) {
        $recordid = $client->getRecordId($record['id']);
    }
}

echo $recordid;
?>


Thanks
Sutharsan Jeganathan



On Mon, Nov 19, 2012 at 10:00 PM, Marian Banica <marian at webio.ro> wrote:

> Hei Shrinivasan,
>
> Can you give me more details how i can do this?
>
>
>
> On Mon, Nov 19, 2012 at 12:53 PM, Shrinivasan T <tshrinivasan at gmail.com>wrote:
>
>> we can use soap api too.
>> On Nov 19, 2012 4:03 PM, "Marian Banica" <marian at webio.ro> wrote:
>>
>>>  Hei guys,
>>>
>>> There is any way to create bulk users? I have to create 200 users, with
>>> 4 different profiles and i need to assign them to 5 different groups.
>>> I need a way to create them a little bit faster. There is any way?
>>>
>>> Marian
>>>
>>>
>>>
>>> _______________________________________________
>>> http://www.vtiger.com/
>>>
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
>
> --
> Marian Banica
> WEBIO - Full Internet Agency
> Phone: +4031.08.09.439
> Mobile: +40744329810
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20121119/ebf5d2be/attachment.html 


More information about the vtigercrm-developers mailing list