Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon API > XML API - GetUserInfo & Quotas

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon API  /

XML API - GetUserInfo & Quotas

[Grave, Maxime]
Maxime Grave
Newbie
Newbie
Posts: 8
Maxime Grave - 05:22am, Jan 30 2019

Hi,

I'm using XML API with Operation "GetUserInfo" to catch current quotas for an account.

It's working pretty well with the following example :

(Request encoding="utf-8" version="18.5.1")
       (Operation)GetUserInfo(/Operation)
       (Parameters)
              (Domain)watsoft.net(/Domain)
              (Mailbox)maxime(/Mailbox)
              (Get)
                    (Quotas/)
              (/Get)
       (/Parameters)
(/Request)

But i try to catch quotas for all account on a specific domain.

I've try to use "*" on Mailbox parameters but it doesnt work.

I'ven't seen on API manual a parameters for that.

Is there a way to catch this ?

I've also think to add all maiboxed on the request but it doesnt work either.

If there is no parameters to use at the moment, could it be considered as a request on API wishlist ?

Thanks

  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Keith Personett - Jan 31, 2019 9:35 am (#1 Total: 3)  

 

Photo of Author
Keith Personett
Newbie
Newbie
Posts: 76
GetUserInfo targets a single user account.

To get all users on a given domain, it would have to go through GetDomainInfo...

(Request version="19.0.0" echo="1" verbose="0")
(Operation)GetDomainInfo(/Operation)
(Parameters)
(Domain)marvel.int(/Domain)
(Get)
(Users)
(Quotas/)
(/Users)
(/Get)
(/Parameters)
(/Request)

Maxime Grave - Feb 1, 2019 4:07 am (#2 Total: 3)  

 

Photo of Author
Maxime Grave
Newbie
Newbie
Posts: 8
Hi Keith,

Great ! It's works pretty well.

Just weird that "MaxDiskSpace" return a value in Ko (Kb), but "DiskSpace" return a value in Octets (b) which is a bit confusing. But it works

Keith Personett - Feb 1, 2019 5:04 pm (#3 Total: 3)  

 

Photo of Author
Keith Personett
Newbie
Newbie
Posts: 76
The XMLAPI just returns the values as they are stored in the MD Core API.



  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.