Retrieve the Mailbox Information for a User

 

Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Retrieves the mailbox information of a user.

GET services/builtin/MailboxManagement.svc/mailbox?username={username}

{username}
The name of a user.

GET https://www.contoso.com/services/builtin/MailboxManagement.svc/mailbox?username=user1 HTTP/1.1  
Content-Type: application/xml  
Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
  

On-Premises Exchange Server

HTTP/1.1 200 OK  

<ExchangeServerMailbox  
    xmlns="http://contracts.microsoft.com/WindowsServerEssentials/2011/09/WebApi"  
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
  <Email>auro@163.com</Email>  
  <UserName>AuroraUser</UserName>  
  <Quota>0</Quota>  
  <QuotaEnforced>false</QuotaEnforced>  
</ExchangeServerMailbox>  

Microsoft Office 365

HTTP/1.1 200 OK  

<Office365Mailbox  
    xmlns="http://contracts.microsoft.com/WindowsServerEssentials/2011/09/WebApi"  
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
  <Email>tonytian@tt2000.onmicrosoft.com</Email>  
  <UserName>AuroraUser</UserName>  
  <Activated>true</Activated>  
</Office365Mailbox>  

Error CodeError Message
400One or more parameters are not valid.
404The path does not exist.
500An internal server error occurred.

Web Service Methods

Community Additions

ADD
Show: