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 11-08-2011, 06:13 PM
Active Member
 
Posts: 27
Default SQL Query

As an admin I need to run a monthly query of all Zimbra users.

There are a handful of fields I know I need, and probably a few more I'd want if I looked through a table layout document. Output to a flat ascii file, or a csv would be fine. I can take it from there.

I'd like to list their user name, first name, last name, description, location, and class of service. I'd like to sort the whole thing by COS (500 users). Last login and some other fields may not be in the user tables, but I'd like to review that/those tables myself to know.

Where can I find a doc on the tables list, and their fields for Zimbra?

Finally, is there something unusual we'd need to do to make this happen? My techs look at me like I'm crazy and mumble when I request their feedback on this project.

TIA... Jim
Reply With Quote
  #2 (permalink)  
Old 11-09-2011, 10:34 AM
Moderator
 
Posts: 7,928
Default

zmprov is your friend. If you query the database directly that can be subject to change without notice and break your scripts. Alternatively it may be a good time to learn the SOAP interface
__________________
Reply With Quote
  #3 (permalink)  
Old 11-12-2011, 01:48 PM
Advanced Member
 
Posts: 206
Default

I prefer to take your advice about zmprov, the SOAP interface sounds horrible to my enduser's ears
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.