mailbox的id获取
时间: 2024-04-21 09:29:43 浏览: 217
基于Mailbox的图像误差扩散并行算法的 SOPC实现 june08_2.pdf
Mailbox ID 是指 Exchange 邮箱的唯一标识符,一般情况下,您可以通过以下方式获取 Mailbox ID:
1. 使用 Exchange PowerShell 获取邮箱的 Mailbox ID。打开 Exchange PowerShell,运行以下命令:
```
Get-Mailbox -Identity user@domain.com | Select-Object ExchangeGUID
```
2. 使用 Microsoft Graph API 获取 Mailbox ID。您可以使用 Microsoft Graph Explorer 或发送 HTTP 请求来获取 Mailbox ID。示例请求如下:
```
GET https://graph.microsoft.com/v1.0/users/user@domain.com?$select=mailboxSettings
```
响应示例:
```
{
"id": "b6b9b3e3-ce5b-4a0b-af60-6d2d5fa8f3e2",
"mailboxSettings": {
"language": {
"locale": "en-US",
"displayName": "English (United States)",
"variant": null
},
"timeZone": {
"name": "Pacific Standard Time",
"alias": "Pacific Standard Time",
"displayName": "(UTC-08:00) Pacific Time (US & Canada)",
"offset": "-08:00",
"standardOffset": "-08:00",
"daylightOffset": "00:00:00",
"timeZoneId": "Pacific Standard Time",
"timeZoneAbbr": "PST"
}
}
}
```
在响应中,"id" 是 Mailbox ID。
阅读全文