Page 1 of 2 12 LastLast
Results 1 to 10 of 13

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

  1. #1
    Join Date
    Apr 2008
    Location
    Virginia
    Posts
    74
    Rep Power
    7

    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.

  2. #2
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    719
    Rep Power
    9

    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.

  3. #3
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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)

  4. #4
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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>

  5. #5
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

  6. #6
    Join Date
    Apr 2008
    Location
    Virginia
    Posts
    74
    Rep Power
    7

    Default

    Easy would be what the bug defines as a feature request.

  7. #7
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Indeed; as I raised it Feel free to vote

  8. #8
    Join Date
    Apr 2008
    Location
    Virginia
    Posts
    74
    Rep Power
    7

    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.

  9. #9
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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

  10. #10
    Join Date
    Sep 2005
    Posts
    78
    Rep Power
    10

    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.

Similar Threads

  1. IM contacts list users ?
    By efcunha in forum Administrators
    Replies: 1
    Last Post: 02-05-2010, 12:05 AM
  2. Replies: 5
    Last Post: 07-28-2008, 03:33 AM
  3. Reading attachments problem
    By lenjacobs in forum Users
    Replies: 2
    Last Post: 12-27-2005, 10:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •