Share via


Office.UserProfile interface

メールボックスに関連付けられているユーザーに関する情報。 これには、アカウントの種類、表示名、電子メール アドレス、タイム ゾーンが含まれます。

注釈

最小アクセス許可レベル: アイテムの読み取り

適用できる Outlook モード: 新規作成または読み取り

プロパティ

displayName

ユーザーの表示名を取得します。

emailAddress

ユーザーの SMTP 電子メール アドレスを取得します。

timeZone

ユーザーのタイム ゾーンを Windows 形式で取得します。

通常、システム タイム ゾーンが返されます。 ただし、Outlook on the webでは、カレンダー設定の既定のタイム ゾーンが代わりに返されます。

プロパティの詳細

displayName

ユーザーの表示名を取得します。

displayName: string;

プロパティ値

string

注釈

最小アクセス許可レベル: アイテムの読み取り

適用できる Outlook モード: 新規作成または読み取り

// Example: Allie Bellew
console.log(Office.context.mailbox.userProfile.displayName);

emailAddress

ユーザーの SMTP 電子メール アドレスを取得します。

emailAddress: string;

プロパティ値

string

注釈

最小アクセス許可レベル: アイテムの読み取り

適用できる Outlook モード: 新規作成または読み取り

// Example: allieb@contoso.com
console.log(Office.context.mailbox.userProfile.emailAddress);

timeZone

ユーザーのタイム ゾーンを Windows 形式で取得します。

通常、システム タイム ゾーンが返されます。 ただし、Outlook on the webでは、カレンダー設定の既定のタイム ゾーンが代わりに返されます。

timeZone: string;

プロパティ値

string

注釈

最小アクセス許可レベル: アイテムの読み取り

適用できる Outlook モード: 新規作成または読み取り

// Example: Pacific Standard Time
console.log(Office.context.mailbox.userProfile.timeZone);