Results 1 to 7 of 7

Thread: How to send standard share message or createMountPoint for other user by admin

  1. #1
    snipking is offline Junior Member
    Join Date
    Oct 2010
    Posts
    6
    Rep Power
    4

    Question How to send standard share message or createMountPoint for other user by admin

    Hi, I'm fresh in Zimbra and try to integrate it with our other system by using the zclient java api.

    I want to sync our hr system to zimbra admin's address book and share the address book to every authed user. I know I need to ModifyFolderGrant for admin's ZMailBox address book folder and CreateMountpoint for every user's ZMailBox. By GUI I can send standard message when share an address book, but how to do it in API ?

    I don't know user's password, only have the admin password. How to get user's ZMailBox to CreateMountpoint for them.

  2. #2
    odeleon is offline Advanced Member
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    5

    Default

    Zmmailbox - Zimbra :: Wiki

    ...or you can share it via a distribution list

  3. #3
    snipking is offline Junior Member
    Join Date
    Oct 2010
    Posts
    6
    Rep Power
    4

    Default

    Thanks for your reply.

    I just want every user can access the entire componey address book through zimbra, and can find any one easily.

    Maybe share address book is a better choice.

    Here's my code fragment
    Code:
    String SoapURL = "https://192.168.68.129:7071" + AdminConstants.ADMIN_SERVICE_URI;
    
    SoapProvisioning sp = new SoapProvisioning();
    sp.soapSetURI(SoapURL);
    sp.soapAdminAuthenticate(AdminName, AdminPasswd);
    
    ZAuthToken zat = sp.getAuthToken();
    ZMailbox zmb = ZMailbox.getByAuthToken(zat, SoapURL);
    ZFolder currzf = zmb.getFolderById("123");
    zmb.modifyFolderGrant(currzf.getId(), ZGrant.GranteeType.usr, account.getName(), "r", null);  // shared foder to every authed user
    But when I try to create mount point
    Code:
    zmb2.createMountpoint("1", currzf.getName(), ZFolder.View.contact, ZFolder.Color.defaultColor, "", null, "admin@zimbra-test.com", ZMailbox.SharedItemBy.BY_ID, currzf.getId());
    I should get the zmb2 ZMailBox object by other authenticated user token. How to do it when I already authenticated as admin ?

  4. #4
    odeleon is offline Advanced Member
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    5

    Default

    Ok then, but if it's just for your company, why not use the Global Address List?

    I thought you were trying to share a list of miscellaneous contacts.

  5. #5
    snipking is offline Junior Member
    Join Date
    Oct 2010
    Posts
    6
    Rep Power
    4

    Default

    It looks like Global Address List can only access through search.

    It cannot have hierarchy structure, maybe ?

  6. #6
    keris is offline Project Contributor
    Join Date
    May 2006
    Location
    Malaysia
    Posts
    9
    Rep Power
    8

    Default

    1st, I don't know how to use soap for provisioning & admin function.

    Correct me if I'm wrong. You need to share address book to all uses, right?
    You can do that by
    1) GAL (as you mention above) or
    2) Shared address book, maintain by few admins with write permission

    For option 1,
    Can use galsync (search in forum & wiki). But you need a way how to sync that from your HR system. That's hardest part. I think you got it done.
    Then you can combine this method with option 2.

    For option 2, normal address book sharing.
    You can just share, create mount point and grant with read or rw permission to shared address book. Can use zmmailbox cmd from CLI. I dont know how to use SOAP.

    a) create address book in one of admin or user account that can manage address book. Or use galsync method above.
    b) share, mount and grant via zmmailbox
    can just share to distribution list.
    can just do this one time, user will always see the shared addressbook.
    c) maintain / update your addressbook

    just sharing
    ./keris

  7. #7
    snipking is offline Junior Member
    Join Date
    Oct 2010
    Posts
    6
    Rep Power
    4

    Default

    Hi, keris
    Thanks very much for your reply.

    I think I will choice option2. Share address book allow my users access our company structure in their address book. I can get it work with zmmailbox cmd. But I think a production powerful like Zimbra should have an SOAP API way to finish this job. So ......

    Or there is any method to send a standard share email to shared user like what the GUI did ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  2. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM
  3. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM
  4. Another installation ldap problem
    By genesis in forum Installation
    Replies: 10
    Last Post: 12-24-2005, 07:02 AM
  5. Network edition - strange behavior
    By goetzi in forum Installation
    Replies: 6
    Last Post: 11-16-2005, 03:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •