Skip to content

Latest commit

 

History

History
138 lines (105 loc) · 4.5 KB

File metadata and controls

138 lines (105 loc) · 4.5 KB
title List Exchange settings
description Get a list of Exchange settings, including mailboxes that belong to a user.
author cparker-msft
ms.date 12/06/2024
ms.localizationpriority medium
ms.subservice outlook
doc_type apiPageType

List Exchange settings

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Get a list of Exchange mailboxes that belong to a user. Currently, the mailbox types supported are the user's primary mailbox and shared mailboxes. To learn how to get a list of users in a tenant, see List users.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

HTTP request

GET /users/{id}/settings/exchange

Optional query parameters

This method supports some of the OData query parameters to help customize the response. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and an exchangeSettings resource in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/users/megan@contoso.com/settings/exchange

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-type: application/json
Content-length: 232

{
      "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('megan%40contoso.com')/settings/exchange/$entity",
      "primaryMailboxId": "MBX:e0643f21@a7809c93"
}