locked
Using EWS Managed Api2.0 How to Get Mailbox Quota ? RRS feed

  • Question

  • Hi,

    I am using Exchange server 2013.
    API to get the information from the MailBox quato this?

    Another question
    API has problems using the eDiscovery.

    This error message is returned.
    "The caller has not assigned any of the RBAC roles requested in the management role header."

    Do not know how to solve this problem.
    Please help me.


    Friday, September 13, 2013 2:27 AM

Answers

All replies

  • No EWS doesn't provide access to the Mailbox Quotas you need to use either LDAP and access Active Directory directly or use Remote powershell to get that information for the user. You can use MailTip is EWS to see if a Mailbox is full.

    To use EDiscovery you need to be given the Discovery Management RBAC role

    Cheers
    Glen 

    Friday, September 13, 2013 6:11 AM
  • thank Glen.

    Discovery Management RBAC role using the power shell? Or Exchange Ecp use?

    Which one do I use?


    Friday, September 13, 2013 8:32 AM
  • I'd suggest you use the EAC http://technet.microsoft.com/en-us/library/jj150562(v=exchg.150).aspx its pretty easy point and click. Just remember it can take up to 15 minutes for the permission to apply.

    cheers
    Glen

    Friday, September 13, 2013 11:18 AM
  • Thank you Glen.

    Is another question

     1. Search in OWA using another method? Or use the EWS?


     2.owa / service.svc / s / GetFileAttachment? id = Attachmentid

    Using EWS would like to use the above command.

    Insert Attachmentid but did not work.

    Do was connect to the login page URL.

    I'd like to correct this problem.

    Monday, September 16, 2013 1:12 AM
  • 1 . Sorry I don't understand your question can you elaborated a little on what you actually asking ?

    2. The EWS Managed API doesn't surface the Get Attachment operation directly (it does get used when you call Load on an Attachment). So if you want to use it you either need to use WSDL proxy code or Raw soap eg

                ExchangeServiceBinding esb = new ExchangeServiceBinding();
                esb.Credentials = new NetworkCredential("user@domain.com", "password");
                esb.Url = service.Url.ToString();
                esb.RequestServerVersionValue = new RequestServerVersion();
                esb.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2012;
    
                GetAttachmentType gaType = new GetAttachmentType();
                gaType.AttachmentIds = new RequestAttachmentIdType[1];
                gaType.AttachmentIds[0] = new RequestAttachmentIdType();
                gaType.AttachmentIds[0].Id = "AZ+E=............";
                GetAttachmentResponseType gaResponse = esb.GetAttachment(gaType);
                if (gaResponse.ResponseMessages.Items[0].ResponseClass == ResponseClassType.Success) { 
    Cheers
    Glen
    Monday, September 16, 2013 3:24 AM
  • HI did you found any solution using API.

    I have also same requirement.

    API to get the information from the MailBox Qthis?


    Amitsp

    Thursday, March 13, 2014 5:03 AM