Office.UserProfile interface
メールボックスに関連付けられているユーザーに関する情報。 これには、アカウントの種類、表示名、メール アドレス、タイム ゾーンが含まれます。
プロパティ
| display |
ユーザーの表示名を取得します。 |
| email |
ユーザーの SMTP 電子メール アドレスを取得します。 |
| time |
ユーザーのタイム ゾーンを Windows 形式で取得します。 通常、システム タイム ゾーンが返されます。 ただし、Outlook on the web と新しい Outlook on Windows) では、予定表の環境設定の既定のタイム ゾーンが代わりに返されます。 |
プロパティの詳細
displayName
ユーザーの表示名を取得します。
displayName: string;
プロパティ値
string
注釈
最小アクセス許可レベル: 項目の読み取り
適用可能な Outlook モード: Composeまたは読み取り
例
// Example: Allie Bellew
console.log(Office.context.mailbox.userProfile.displayName);
emailAddress
ユーザーの SMTP 電子メール アドレスを取得します。
emailAddress: string;
プロパティ値
string
注釈
最小アクセス許可レベル: 項目の読み取り
適用可能な Outlook モード: Composeまたは読み取り
例
// Example: allieb@contoso.com
console.log(Office.context.mailbox.userProfile.emailAddress);
timeZone
ユーザーのタイム ゾーンを Windows 形式で取得します。
通常、システム タイム ゾーンが返されます。 ただし、Outlook on the web と新しい Outlook on Windows) では、予定表の環境設定の既定のタイム ゾーンが代わりに返されます。
timeZone: string;
プロパティ値
string
注釈
最小アクセス許可レベル: 項目の読み取り
適用可能な Outlook モード: Composeまたは読み取り
例
// Example: Pacific Standard Time
console.log(Office.context.mailbox.userProfile.timeZone);