Results 1 to 2 of 2

Thread: [SOLVED] Accessing account attributes within Zimlet

  1. #1
    Join Date
    Aug 2007
    Posts
    6
    Rep Power
    8

    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

  2. #2
    Join Date
    Aug 2007
    Posts
    6
    Rep Power
    8

    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);

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. Replies: 8
    Last Post: 04-21-2007, 11:29 PM
  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, 03: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
  •