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 ?