Partager via


Specify the Email Addresses for a Microsoft Office 365 Account

 

Applies To: Windows Server 2012 Essentials

Specifies (sets) the email addresses for a Microsoft Office 365 account.

URI Template

POST services/builtin/MailboxManagement.svc/mailbox/setEmailAddresses?username={username}&emails={emails}

{username}
The logon name of a user.

{emails}
A comma-separated list of email addresses to attach to the user.

Sample Request

POST https://www.contoso.com/services/builtin/MailboxManagement.svc/mailbox/setEmailAddresses?username=user1&emails=user1@tt1.onmicrosoft.com,user2@tt1.onmicrosoft.com HTTP/1.1  
Content-Type: application/xml  
Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
Content-Length: 0  

Sample Response

Microsoft Office 365

HTTP/1.1 200 OK  

Error Codes

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

See Also

Web Service Methods