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

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 04-05-2010, 11:34 AM
VTC VTC is offline
Senior Member
 
Posts: 74
Default Is there an easy way to get a list of users using ZimbraMobile (ver 6.x)?

Is their an easy way to get a list of users using ZimbraMobile (ver 6.x)?

My site basically ignores the principle of least privilege when it comes to mail. Everyone is granted access to external Imap Pop and Zimbra Mobile.

I want to able to get an effective list of everyone who is currently setup with zimbra mobile.
Reply With Quote
  #2 (permalink)  
Old 04-05-2010, 07:15 PM
Outstanding Member
 
Posts: 708
Default

Define "easy."

What I usually do is grep for the license check in log/audit.log*. Use cut, awk, or perl to extract user. sort, uniq.

The is probably also in mysql... Preferences/Mobile Devices must come from somewhere.
Reply With Quote
  #3 (permalink)  
Old 04-06-2010, 01:09 AM
Moderator
 
Posts: 7,929
Default

Running under dev mode when you click on the Preferences->Mobile Devices tab in the ZWC it makes the soap call
Code:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<userAgent xmlns="" name="ZimbraWebClient - FF3.0 (Linux)" version="6.0.6_GA_2322.RHEL5"/>
<session xmlns="" id="1407"/>
<notify xmlns="" seq="3"/>
<account xmlns="" by="name">
uxbod@domain.com
</account>
<format xmlns="" type="js"/>
<authToken xmlns="">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
</authToken>
</context>
</soap:Header>
<soap:Body>
<GetDeviceStatusRequest xmlns="urn:zimbraSync"/>
</soap:Body>
</soap:Envelope>
So using that I tried a zmsoap call
Code:
zmsoap -z -v -m uxbod@domain.com -t mobile GetDeviceStatusRequest/account=uxbod@domain.com @by=name
though that throws a lovely response of
Code:
ERROR: service.UNKNOWN_DOCUMENT (unknown document: GetDeviceStatusRequest)
__________________
Reply With Quote
  #4 (permalink)  
Old 04-06-2010, 01:17 AM
Moderator
 
Posts: 7,929
Default

Argh! It looks like that request has not been added to the Admin interface
Code:
zmsoap -v -m uxbod@domain.com -p somepassword -t mobile GetDeviceStatusRequest/account=uxbod@domain.com @by=name
as that quite happily returns back
Code:
<GetDeviceStatusResponse xmlns="urn:zimbraSync">
  <device id="Appl??????????????" protocol="2.5" ua="Apple-iPhone/701.???" type="iPhone">
    <provisionable>1</provisionable>
    <status>1</status>
    <firstReqReceived>1248972040</firstReqReceived>
    <lastPolicyUpdate>1270193862</lastPolicyUpdate>
  </device>
</GetDeviceStatusResponse>
__________________
Reply With Quote
  #5 (permalink)  
Old 04-06-2010, 01:21 AM
Moderator
 
Posts: 7,929
Default

Bug 45944 - zmsoap admin call for GetDeviceStatusRequest
__________________
Reply With Quote
  #6 (permalink)  
Old 04-06-2010, 05:16 AM
VTC VTC is offline
Senior Member
 
Posts: 74
Default

Easy would be what the bug defines as a feature request.
Reply With Quote
  #7 (permalink)  
Old 04-06-2010, 05:25 AM
Moderator
 
Posts: 7,929
Default

Indeed; as I raised it Feel free to vote
__________________
Reply With Quote
  #8 (permalink)  
Old 04-06-2010, 05:53 AM
VTC VTC is offline
Senior Member
 
Posts: 74
Default

Quote:
Originally Posted by uxbod View Post
Indeed; as I raised it Feel free to vote
I give you much kudos... Although its quite puzzling how they forgot to implement that, I mean I would think that would be a critical piece to controlling/administrating mobile users. But hey, with the big move, maybe their heads got a little in the gutters.
Reply With Quote
  #9 (permalink)  
Old 04-06-2010, 05:58 AM
Moderator
 
Posts: 7,929
Default

Though it is possible that I am using the incorrect syntax; and hopefully by opening that RFE that will set me right on the matter
__________________
Reply With Quote
  #10 (permalink)  
Old 04-06-2010, 03:23 PM
Zimbra Employee
 
Posts: 78
Default

This is possible, but unfortunately not with admin auth. You have to do
Code:
$ zmsoap -m admin -p test123 -t mobile GetDeviceStatusRequest
<GetDeviceStatusResponse xmlns="urn:zimbraSync"/>
which requires knowing the user's password. I filed bug 45972 for the admin auth issue.
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.