outlookUser: supportedLanguages
Namespace: microsoft.graph
중요
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server.
When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language by getting the user's mailbox settings.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ✅ | ✅ | ✅ |
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.
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | User.Read | User.Read.All, User.ReadBasic.All |
Delegated (personal Microsoft account) | User.Read | Not available. |
Application | Not supported. | Not supported. |
GET /me/outlook/supportedLanguages
GET /users/{id|userPrincipalName}/outlook/supportedLanguages
Name | Type | Description |
---|---|---|
Authorization | string | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns 200 OK
response code and a collection of localeInfo objects in the response body.
Here is an example of how to call this API.
The following example shows a request.
GET https://graph.microsoft.com/beta/me/outlook/supportedLanguages
The following example shows the response.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context":"https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.localeInfo)",
"value":[
{
"locale":"af-ZA",
"displayName":"Afrikaans (Suid-Afrika)"
},
{
"locale":"en-US",
"displayName":"English (United States)"
},
{
"locale":"en-CA",
"displayName":"English (Canada)"
}
]
}