[Vtigercrm-developers] Create user with API in vtiger 7
Alan Lord
alanslists at gmail.com
Tue Nov 5 14:18:34 GMT 2019
Hi Iko,
Can you confirm you got to create users using the api?
I'm trying on vtiger 7.1 and getting that bloody useless message:
> Exception: Permission to perform the operation is denied for id
This is the array of data I am using:
> [roleid] => H11
> [first_name] => firstname redacted
> [last_name] => lastname redacted
> [email1] => email redacted
> [email2] =>
> [user_name] => username redacted
> [is_admin] => off
> [date_format] => mm-dd-yyyy
> [time_zone] => America/New_York
> [currency_grouping_separator] => ,
> [language] => en_us
> [status] => Active
> [title] =>
> [department] =>
> [phone_home] =>
> [phone_mobile] =>
> [phone_work] =>
> [phone_other] =>
> [phone_fax] =>
> [secondaryemail] =>
> [signature] =>
> [address_street] =>
> [address_city] =>
> [address_state] =>
> [address_country] =>
> [address_postalcode] =>
> [user_preferences] =>
> [tz] =>
> [holidays] =>
> [namedays] =>
> [workdays] =>
> [weekstart] =>
> [hour_format] => 12
> [start_hour] => 09:00
> [end_hour] =>
> [activity_view] => Today
> [lead_view] => Today
> [user_password] => $2y$10$NdqlsKaVj7fyp/FQnG6.dededeIog6GF0M4LzMk2vvkW3d/Z9ay
> [confirm_password] => $2y$10$lS2yvTz7JjlDJQ1sT.5ededededtJCZuHmIozALa4m/CXXEkbYyng.
> [internal_mailer] => 0
> [crypt_type] => PHASH
> [reminder_interval] =>
> [reminder_next_time] =>
> [accesskey] => iyK9KjZnnWQ6I7O
> [theme] => softed
> [currency_grouping_pattern] => 123,456,789
> [currency_decimal_separator] => .
> [currency_symbol_placement] => $1.0
> [no_of_currency_decimals] => 2
> [truncate_trailing_zeros] => 0
> [dayoftheweek] => Sunday
> [callduration] => 5
> [othereventduration] => 5
> [calendarsharedtype] => public
> [default_record_view] => Summary
> [leftpanelhide] => 0
> [rowheight] => medium
> [defaulteventstatus] =>
> [defaultactivitytype] =>
> [hidecompletedevents] => 0
> [phone_crm_extension] =>
> [is_owner] =>
> [initials] =>
> [assigned_user_id] => 19x1
I can confirm that this used to work on vtiger 6. I am trying to re-use
some old code. I have tried removing a large number of fields but I
still get the same exception message back.
I am merging two vtiger systems together so I *need* to copy the users
from one system into the other.
No errors are logged.
Al
On 05/02/2018 11:46, iko wrote:
> Thank you, Alan. I don´t have direct access to command line on that
> particular system. I use cron to do that for me.
>
> I have succeeded in creating user from csv with cron. I had to change $argv
> to a path and change order of the header values. That did the trick :)
>
>
More information about the vtigercrm-developers
mailing list