Results 1 to 9 of 9

Thread: Accessing account information with SOAP or Zimlet

  1. #1
    phazer is offline Junior Member
    Join Date
    Mar 2007
    Posts
    6
    Rep Power
    8

    Default Accessing account information with SOAP or Zimlet

    Hi everyone,

    I'm looking at Zimbra as a possible replacement for MS Exchange at my organization. I have to say, I love the SOAP interfaces and have already played with integrating some Zimbra functions into our existing staff portal. Really great architecture.

    One thing has me puzzled though. I haven't been able to find a way to access information about the current user's account (as a regular user, not an admin user). Specifically, I would like to retrieve the information entered into the "Contact Information" tab when editing the account in zimbraAdmin.

    Right now I'd like to do this from a Zimlet, but later would also like to access the data from an external app using SOAP (for example, the Department field could be useful on our portal page to display custom content to the user based on which department they are in. I already have preauth/single-signon working so that is not a problem).

    I have searched the forums and documentation and have not be able to find anywhere that this information is accessible outside of zimbraAdmin. GetInfoRequest looked promising, but it doesn't return the account's contact information. In soap.txt under GetInfoResponse it says "Only attributes listed in zimbraAccountClientAttrs will be returned" ... I thought maybe I could modify that value to have it also return the contact info but I couldn't find any reference to zimbraAccountClientAttrs outside of that document. Not in the forums, not in the documentation, not even from a Google search.

    So my question is... is this contact information accessible somehow? If so, how?

    Thanks in advance,
    -Christian

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default SearchGal

    Does <SearchGalRequest> do what you want?

    Alternatively, I think you can edit the conf/attrs/zimbra-attrs.xml file and add "accountInfo" to the "flags" on the LDAP attrs you want returned in GetInfo, then restart tomcat. Note that changes to this file will probably be overwritten during your next upgrade.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    phazer is offline Junior Member
    Join Date
    Mar 2007
    Posts
    6
    Rep Power
    8

    Default

    Thanks, SearchGalRequest worked. I didn't try that as I didn't really think of doing a search, and there is hardly any documentation on that function on soap.txt. Maybe something more descriptive could be added in the future.

    Speaking of that, if we do end up implementing Zimbra here, I will probably get involved in development. The first thing I would like to do is create some nice HTML browseable documentation for all the SOAP functions in a javadoc-like format

    Thanks again for your response, you solved my problem.
    -Christian

  4. #4
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default Please do!

    Quote Originally Posted by phazer View Post
    Speaking of that, if we do end up implementing Zimbra here, I will probably get involved in development. The first thing I would like to do is create some nice HTML browseable documentation for all the SOAP functions in a javadoc-like format
    Fantastic! Even better would be if you can generate both a soap.txt-like text file and nice browseable HTML from the same source file...

    We're looking forward to your contributions!
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    bhavionline Guest

    Default

    Quote Originally Posted by phazer View Post

    I'm looking at Zimbra as a possible replacement for MS Exchange at my organization. I have to say, I love the SOAP interfaces and have already played with integrating some Zimbra functions into our existing staff portal. Really great architecture.

    Hello,

    I am pretty new to SOAP, i installed zimbra and liked it very much.
    Now as i want to integrate my application, i need access to the zimbra data, say i want access to each users address book. I wen throught the forums and found that i need to use the SOAP api and i also went throught the soap.txt files but did not understand much out of it.

    I have a ready application in jsp where in i want to show a drop down of contacts email address from zimbra address book. Please give me steps how i can access the SOAP api from jsp.

    A small code snippet would be of great help.

    Thanks

  6. #6
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default zmailbox

    If you're in Java, you should really consider using the zmailbox Java class. It encapsulates all the SOAP you'd need for accessing user mailboxes.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  7. #7
    bhavionline Guest

    Default zmailbox

    Quote Originally Posted by dkarp View Post
    If you're in Java, you should really consider using the zmailbox Java class. It encapsulates all the SOAP you'd need for accessing user mailboxes.
    Where can i get this class and can i get the API docs for the same.

    Thanks

  8. #8
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default Svn

    It's in the standard ZimbraServer release. Source for it can be found in Subversion.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  9. #9
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Quote Originally Posted by bhavionline View Post
    Where can i get this class and can i get the API docs for the same.

    Thanks
    http://wiki.zimbra.com/index.php?title=ZClient
    Check here for some more information on how Zclient works and can be setup.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Replies: 5
    Last Post: 01-11-2008, 05:34 AM
  3. Domain Admin Error: Permission Denied
    By shanson in forum Administrators
    Replies: 3
    Last Post: 05-29-2007, 05:48 AM
  4. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  5. Using Zimlet to add zimbra account
    By dzed in forum Zimlets
    Replies: 2
    Last Post: 05-05-2006, 02:15 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
  •