Admin can't import tasks to user accounts?

Looking to migrate to ZCS? Ask here. Got a great tip or script that helped you migrate? Post it here.
gkra
Advanced member
Advanced member
Posts: 53
Joined: Fri Sep 12, 2014 10:36 pm

Admin can't import tasks to user accounts?

Post by gkra »

I'm in the process of converting and migrating user data from our Oracle Calendar system, and one of the things we'll need to convert are To-Do lists (i.e., tasks.) I'm having trouble pushing the task ICS files into zimbra via the REST interface as the admin user. Using the individual user credentials seems to work, but is impractical for large-scale migrations (550+ users).
I'm using the following command to push the data to Zimbra:
curl -u admin@mydomain.tld --data-binary @username_tasklist.ics '
This">https://zimbraserver.mydomain.tld/servi ... ks?fmt=ics'
This is taken from the User Migration page on the Zimbra Wiki.
It works fine if I use the user's credentials, but admin gets a HTTP 403.
It works fine for pushing actual calendars, like:
curl -u admin@mydomain.tld --data-binary @username_calendar.ics '
Have">https://zimbraserver.mydomain.tld/servi ... ar?fmt=ics'
Have I run into a bug?
The error message returned to me is:
[QUOTE]HTTP ERROR: 403
permission denied: you do not have sufficient permissions
RequestURI=/service/home/gruizade/tasks
Powered by Jetty://

[/QUOTE]
I couldn't find anything relevant in the logs (/opt/zimbra/log), but I'm not sure what I should be looking for...
bobby
Outstanding Member
Outstanding Member
Posts: 515
Joined: Fri Sep 12, 2014 10:01 pm

Admin can't import tasks to user accounts?

Post by bobby »

It's probably easier to use "zmmailbox postRestURL". Also, are you running the icalmig utility on the exports from OCS?
zmmailbox -z -m user@domain.com pru /some-tasks-folder user-export.ics
gkra
Advanced member
Advanced member
Posts: 53
Joined: Fri Sep 12, 2014 10:36 pm

Admin can't import tasks to user accounts?

Post by gkra »

[quote user="17224bobby"]It's probably easier to use "zmmailbox postRestURL". Also, are you running the icalmig utility on the exports from OCS?
zmmailbox -z -m user@domain.com pru /some-tasks-folder user-export.ics[/QUOTE]
Actually, I hadn't known about icalmig. Where is this documented? The User Migration notes on the Zimbra Wiki never mentioned it.
For the most part, we've been able to simply upload ical files via the REST URLs with curl (or similar).
BDY35
Posts: 14
Joined: Sat Sep 13, 2014 1:03 am

Admin can't import tasks to user accounts?

Post by BDY35 »

Hi Gregory !
I am in the same process than you 3 years ago.
My trouble is not with Zimbra (importing with zmmailbox rune fine and i don't believe that icalmig is really needed for tasks as usually there are not repetitive) but with Oracle Calendar Suite.
Except by writing a program using the SDK or asking each user to export his tasks, i have not found any easy way to retieve the tasks opf each user.
Have you any information about this topic ?

If you have written such an export tool, would you like to share it with me ?
Strangely, the OCS CLI "uniical" odes not export VTODO (tasks), only EVENTS.
Thanks in advance
Bertrand
BDY35
Posts: 14
Joined: Sat Sep 13, 2014 1:03 am

Admin can't import tasks to user accounts?

Post by BDY35 »

Another question about the almost same trouble : how a zimbra user can import his/hers tasks by himself ?
The "import" page in the preferences tab of the web interface does not import tasks ! Only calendar events.
Have I missed a point ?
Thanks for any reply.
Bertrand
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Admin can't import tasks to user accounts?

Post by phoenix »

[quote user="BDY35"]ANOTHER QUESTION ABOUT THE ALMOST SAME TROUBLE : HOW A ZIMBRA USER CAN IMPORT HIS/HERS TASKS BY HIMSELF ?
THE "IMPORT" PAGE IN THE PREFERENCES TAB OF THE WEB INTERFACE DOES NOT IMPORT TASKS ![/QUOTE]OH YES IT DOES. BROWSE TO THE FILE YOU WISH TO IMPORT, SELECT IT AND THEN YOU'LL SEE THE ADVANCED CHECKBOX AND WHEN YOU CLICK ON IT YOU'LL SEE THE OPTION TO IMPORT TASKS.
tasks.png
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
rienne
Posts: 5
Joined: Sat Sep 13, 2014 1:15 am

Admin can't import tasks to user accounts?

Post by rienne »

[quote]OH YES IT DOES. BROWSE TO THE FILE YOU WISH TO IMPORT, SELECT IT AND THEN YOU'LL SEE THE ADVANCED CHECKBOX AND WHEN YOU CLICK ON IT YOU'LL SEE THE OPTION TO IMPORT TASKS.[/QUOTE]

DOESN'T WORK FOR ME. ISN'T THAT JUST FOR EXPORTING? DO YOU KNOW WHAT KIND OF FILES ARE ABLE TO BE IMPORTED TO TASKS PLEASE?
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Admin can't import tasks to user accounts?

Post by phoenix »

[quote user="rienne"]Doesn't work for me. Isn't that just for exporting?[/QUOTE]No, if you look at the image above you'll see it's the Import option.
[quote user="rienne"]Do you know what kind of files are able to be imported to tasks please?[/QUOTE]This would be a .tzg file that you've exported from a Zimbra user.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
rienne
Posts: 5
Joined: Sat Sep 13, 2014 1:15 am

Admin can't import tasks to user accounts?

Post by rienne »

Bill many thanks for your speedy response, much appr
http://i224.photobucket.com/albums/dd73 ... import.jpg />
Also the file I have to import is not a Zimbra file. It is either csv or from Outlook. Do you have any ideas please, many thanks :confused:
rgds

Jeff
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Admin can't import tasks to user accounts?

Post by phoenix »

The Import/Export function is to allow the user to backup and restore their own data and not import other formats. If you think that's something that should be added then you need to file an RFE in Bugzilla Main Page - Zimbra.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Post Reply