Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-01-2007, 04:38 PM
Junior Member
 
Posts: 6
Default [SOLVED] Accessing account attributes within Zimlet

I'm trying to access the "zimbraId" account attribute within the zimlet.xml file (or zimlet.js) to authenticate the user during a web service request from a Zimlet.

I cannot figure out if there is an interface to get the value of the current user's attributes from within the Zimlet.

Even the current user's primary Zimbra email address would be sufficient for my purpose. I just need a value to securely identify the originating Zimbra account during a web service request.

Thanks for any guidance,
*Mars
Reply With Quote
  #2 (permalink)  
Old 10-02-2007, 12:30 AM
Junior Member
 
Posts: 6
Default

I tentatively found the answer. The following Javascript returns the values I'm seeking:

Code:
_zimbraMail._appCtxt.get(ZmSetting.USERNAME);

_zimbraMail._appCtxt.get(ZmSetting.USERID);
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.