[SOLVED] create a user programatically!!

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
jayanth
Posts: 37
Joined: Sat Sep 13, 2014 1:13 am

[SOLVED] create a user programatically!!

Post by jayanth »

Hello,
how can i create a new user using java program. I searched all the posts but no one is clear. some one told that we can do that using SOAP , but in soap.txt i didnt find anything corresponding to this..:confused:
15539sam
Zimbra Alumni
Zimbra Alumni
Posts: 814
Joined: Fri Sep 12, 2014 9:52 pm

[SOLVED] create a user programatically!!

Post by 15539sam »

Take a look at soap-admin.txt or ZClient, the Zimbra Java client library.
13546dalmate
Outstanding Member
Outstanding Member
Posts: 360
Joined: Fri Sep 12, 2014 11:59 pm

[SOLVED] create a user programatically!!

Post by 13546dalmate »

[quote user="jayanth"]Hello,
how can i create a new user using java program. I searched all the posts but no one is clear. some one told that we can do that using SOAP , but in soap.txt i didnt find anything corresponding to this..:confused:[/QUOTE]

or you can see commands of zimbra console and write a program that can calls these commands
jayanth
Posts: 37
Joined: Sat Sep 13, 2014 1:13 am

[SOLVED] create a user programatically!!

Post by jayanth »

[quote user="15539sam"]Take a look at soap-admin.txt or ZClient, the Zimbra Java client library.[/QUOTE]


Thank for the reply,,,,,,,


what is zclient ," zclient wiki "that was given is not so explanatory . where can i get the Zimbra client library.is there any example for that
uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

[SOLVED] create a user programatically!!

Post by uxbod »

Old thread but it will give you the idea :-
I">http://www.zimbra.com/forums/developers ... -soap.html
I imagine the best thing to do would be to download the code from P4 and take a look through the different classes; alternatively you could use SOAP calls for creating the account.
jayanth
Posts: 37
Joined: Sat Sep 13, 2014 1:13 am

[SOLVED] create a user programatically!!

Post by jayanth »

the link you have shown is fairly straight forward. Thanks for that.

But from where can get the packages like = "com.zimbra.common.service.ServiceException"
is there any jar file or folder or a link to download it ,,,
Thanks in advance
uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

[SOLVED] create a user programatically!!

Post by uxbod »

All the JAR files will be available in the source code. You should have a read through Building Zimbra using Perforce - Zimbra :: Wiki.
jayanth
Posts: 37
Joined: Sat Sep 13, 2014 1:13 am

[SOLVED] create a user programatically!!

Post by jayanth »

i installed p4 and whenever i am trying to checkout GNR - 602 it is showing the error as dont have permission for this operation . Then how to proceed further
uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

[SOLVED] create a user programatically!!

Post by uxbod »

Please post the command you are running to checkout the code.
jayanth
Posts: 37
Joined: Sat Sep 13, 2014 1:13 am

[SOLVED] create a user programatically!!

Post by jayanth »

i am using p4(visual client) in windows.


Browse Zimbra Community Builds & Projects Files on SourceForge.net , is this same with GNR-602 check out
Post Reply