Assign an Existing Mailbox to a User
Applies To: Windows Server 2012 Essentials
Assigns an existing mailbox to a user.
URI Template
POST services/builtin/MailboxManagement.svc/mailbox/set?username={username}&email={email}
{username}
The name of a user.
{email}
The email address to assign to the user.
Sample Request
POST https://www.contoso.com/services/builtin/MailboxManagement.svc/mailbox/set?username=user1&email=user1@microsoft.com HTTP/1.1
Content-Type: application/xml
Accept: application/xml
Cookie: ASP.NET_SessionId=********************
Canary: *********************
Host: domainname
Content-Length: 0
Sample Response
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. |
409 | The mailbox is already assigned to another user. |
500 | An internal server error occurred. |
501 | Not implemented. |